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

prevents multi-touch issue on ipad #1756

Merged
merged 1 commit into from Dec 19, 2019
Merged

prevents multi-touch issue on ipad #1756

merged 1 commit into from Dec 19, 2019

Conversation

deminoth
Copy link
Contributor

iPad gestures with pen input can raise error even after #1754. This PR fix it.

Copy link
Member

@iangilman iangilman left a comment

Choose a reason for hiding this comment

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

Thank you for pursuing this!

@@ -2959,7 +2959,7 @@
}

// OS-specific gestures (e.g. swipe up with four fingers in iPadOS 13)
if (gPoints[ 0 ].type === "touch" && typeof gPoints[ 0 ].currentPos === "undefined") {
if (typeof gPoints[ 0 ].currentPos === "undefined") {
Copy link
Member

Choose a reason for hiding this comment

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

Interesting. Out of curiosity, what is the type in this situation?

Also, should it really be the string "undefined", or the value undefined?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I saw 'pen' type after very many attempts. Maybe false palm rejection with pen inputs can cause that.

That's value undefined (with typeof) :)

Copy link
Member

Choose a reason for hiding this comment

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

Okay, good to know, regarding the pen type.

And sure enough, it's a typeof... don't know why I didn't notice that before!

@iangilman
Copy link
Member

Looking good!

@iangilman iangilman merged commit 889bbce into openseadragon:master Dec 19, 2019
iangilman added a commit that referenced this pull request Dec 19, 2019
@deminoth deminoth deleted the fix-multitouch branch December 20, 2019 02:54
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

2 participants