Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.
/ SDL Public archive

fix scrolling after zoom #25

Merged
merged 1 commit into from
Nov 12, 2021
Merged

fix scrolling after zoom #25

merged 1 commit into from
Nov 12, 2021

Conversation

rpadaki
Copy link
Contributor

@rpadaki rpadaki commented Nov 12, 2021

The issue is that after rapid zooming, SDL never gets a pinch event from macOS with a magnification of 0 -- the last tick has nonzero magnification. Hence, the protocol never believes the zoom event has ended, and all scrolling is disabled until a successful zoom cancellation!

This PR fixes things by explicitly checking for whether a pinch event is closing out a pinch action, in which case we force the magnification to 0 so that the protocol can now appropriately handle.

Copy link
Collaborator

@philippemnoel philippemnoel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if I zoom and want to remain zoomed in? Is this going to reset my zoom to full-screen?

@philippemnoel philippemnoel merged commit f219de0 into main Nov 12, 2021
@philippemnoel philippemnoel deleted the roshan/fix-scrolling branch November 12, 2021 23:12
philippemnoel pushed a commit that referenced this pull request Dec 1, 2021
schkillten pushed a commit that referenced this pull request Dec 24, 2021
schkillten pushed a commit that referenced this pull request Dec 24, 2021
schkillten pushed a commit that referenced this pull request Jan 3, 2022
fhvwy pushed a commit that referenced this pull request Apr 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants