Skip to content

Commit

Permalink
Fixes mouse click offset on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
domstoppable committed Oct 10, 2024
1 parent 70c931c commit 7c45c60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pupil_src/launchables/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,8 +695,8 @@ def handle_notifications(n):
button, action, mods = b
x, y = glfw.get_cursor_pos(main_window)

x -= g_pool.camera_render_rect[0]
y -= g_pool.camera_render_rect[1]
x -= g_pool.camera_render_rect[0] / g_pool.gui.scale
y -= g_pool.camera_render_rect[1] / g_pool.gui.scale
pos = gl_utils.window_coordinate_to_framebuffer_coordinate(
main_window, x, y, cached_scale=None
)
Expand Down

0 comments on commit 7c45c60

Please sign in to comment.