mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-25 14:17:29 -04:00
touchpad scroll
This commit is contained in:
parent
44f5bbeeb8
commit
b5d8a6da5a
2 changed files with 16 additions and 7 deletions
|
@ -18,8 +18,11 @@ func change_size() -> void:
|
|||
func _input(event: InputEvent) -> void:
|
||||
if not search.has_focus(): return
|
||||
|
||||
if (event is InputEventMouseButton
|
||||
and event.button_index in [MOUSE_BUTTON_WHEEL_UP, MOUSE_BUTTON_WHEEL_DOWN]):
|
||||
if event is InputEventMouseButton and event.button_index in \
|
||||
[MOUSE_BUTTON_WHEEL_UP, MOUSE_BUTTON_WHEEL_DOWN]:
|
||||
update_position = true
|
||||
|
||||
if event is InputEventPanGesture:
|
||||
update_position = true
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue