fix ui camera scroll bug

This commit is contained in:
2022-09-08 02:35:48 +00:00
parent 26ab037ec9
commit 02aeaa85c5

View File

@@ -154,7 +154,7 @@
// Scroll the UI with the mouse:
(var UI_SCROLL_FACTOR 2)
(+= uiCamera.y (* FlxG.mouse.wheel UI_SCROLL_FACTOR))
(+= uiCamera.scroll.y (* FlxG.mouse.wheel UI_SCROLL_FACTOR))
// TODO allow changing the a scroll factor
// Control the UI camera with WASD, and the playground camera with arrow keys: