Исправление. Режим Работа. Строб получает управление, когда он скрыт

This commit is contained in:
sasha80
2025-09-20 15:00:56 +03:00
parent 94e9d654b6
commit f50d1a9a98

View File

@@ -349,6 +349,7 @@ func set_strob(pos: Vector2) -> void:
## Обработка движения мыши для управления стробом. Вызывается во время движения мыши.
func _on_drag_continue(event) -> void:
if not $canvas.get_strob_visible(): return
if drag_button == MOUSE_BUTTON_RIGHT:
if shift_pressed:
var strob_width: float = get_strob_width(event.position, strob_width_begin)
@@ -362,6 +363,7 @@ func _on_drag_continue(event) -> void:
## Обработка движения мыши для управления стробом. Вызывается при нажатии мыши.
func _on_drag_begin(event) -> void:
if not $canvas.get_strob_visible(): return
drag_pos_begin = event.position
if drag_button == MOUSE_BUTTON_LEFT:
set_strob(event.position)