Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calculate pixel ratio in cursor_pos_callback #43

Closed
wants to merge 1 commit into from
Closed

Calculate pixel ratio in cursor_pos_callback #43

wants to merge 1 commit into from

Conversation

wezzynl
Copy link

@wezzynl wezzynl commented Jan 23, 2017

On my Retina MacBook Pro when dragging to make a selection or when trying to click a link, the x and y coordinates were off. This calculates the ratio before calling the callback. Can't test on a non-Retina screen but it should work correctly.

@kovidgoyal
Copy link
Owner

I fixed it slightly differently, to avoid needing to calculate the ratio on every callback

@wezzynl
Copy link
Author

wezzynl commented Jan 24, 2017

Ah, there's a ViewPortSize object :) Perfect. Thanks!

@binor binor mentioned this pull request Apr 5, 2017
@binor
Copy link
Contributor

binor commented Apr 6, 2017

Hey @wezzynl, for me this isn't fixed yet. I'm running kitty on a Macbook Pro (2016). Could you please verify?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants