vertical SimpleWindow accept mousewheel input

This commit is contained in:
2023-07-10 13:57:56 -06:00
parent 192ed4e49e
commit 97541e4f80

View File

@@ -496,8 +496,10 @@
// Scroll wheel scroll up/down
(when _useScrolling
// TODO move all controls other than xButton and scrollbar. Clamp movement by top and bottom of all controls
null)
(let [scrollAmount FlxG.mouse.wheel
scrollFunc (if (> 0 scrollAmount) _scrollDown _scrollUp)]
(doFor _ (range (Std.int (Math.abs scrollAmount)))
(scrollFunc))))
// Figure out whether to use mouse input or key/gamepad input for ui navigation
(when justPressedUIButton