Skip to content

Commit 021b1fc

Browse files
committed
Mouse: do not truncate scaled coordinates
I'm not sure exactly why I was flooring this value, but with osdScale != 1, it is better to leave things as floats.
1 parent 4a9408f commit 021b1fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Mouse.moon

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class Mouse
88
scaledPosition = =>
99
x, y = mp.get_mouse_pos!
1010
@_rawX, @_rawY = x, y
11-
return math.floor( x/Window.osdScale ), math.floor( y/Window.osdScale )
11+
return x / Window.osdScale, y / Window.osdScale
1212

1313
@update: =>
1414
oldX, oldY = @x, @y

0 commit comments

Comments
 (0)