CameraTools.updateScrollWheelZoom

This commit is contained in:
2022-06-27 14:03:26 +00:00
parent 41af3009bb
commit 4b72739a9c
3 changed files with 12 additions and 6 deletions

View File

@@ -128,6 +128,9 @@
->{FlxG.keys.pressed.UP}
->{FlxG.keys.pressed.DOWN})
(FlxG.camera.updateMouseBorderControl elapsed KEYBOARD_SCROLL_SPEED 0.15)
(FlxG.camera.updateScrollWheelZoom elapsed 1)
// don't move the ui camera before ui has been placed -- new UI elements could appear offscreen
(when (> uiGroup.length 0)
(unless (and textInput textInput.hasFocus)