Refactor window size, update selection cursor on new screen
This commit is contained in:
@@ -36,8 +36,8 @@ handleMouseMotionEvent mmev cfig =
|
||||
P (V2 x y) = mouseMotionEventPos mmev
|
||||
themousepos =
|
||||
V2
|
||||
(fromIntegral x - 0.5 * _windowX cfig)
|
||||
(0.5 * _windowY cfig - fromIntegral y)
|
||||
(fromIntegral x - 0.5 * windowXFloat cfig)
|
||||
(0.5 * windowYFloat cfig - fromIntegral y)
|
||||
|
||||
handleMouseWheelEvent :: MouseWheelEventData -> Input -> Input
|
||||
handleMouseWheelEvent mwev = scrollAmount +~ fromIntegral y
|
||||
|
||||
Reference in New Issue
Block a user