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

fix(image-lightbox): fix zoom on mouse wheel cursor position #1183

Merged

Conversation

gcornut
Copy link
Member

@gcornut gcornut commented Sep 16, 2024

General summary

pageY & pageX we used for the cursor position for the zoom center actually depended on the page scroll position but we wanted the cursor position in the window (since the image lightbox is always fullscreen)

@gcornut gcornut marked this pull request as ready for review September 16, 2024 15:31
@gcornut gcornut requested review from lumautomation and a team as code owners September 16, 2024 15:31
@gcornut
Copy link
Member Author

gcornut commented Sep 17, 2024

Test OK (tested in an alpha release directly in the product) ✅

@gcornut gcornut merged commit 86c7371 into master Sep 17, 2024
13 checks passed
@gcornut gcornut deleted the fix_image-lightbox_fix_zoom_on_mouse_wheel_cursor_position branch September 17, 2024 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants