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

Multi-touch zoom with multiple NGL instances #1033

Open
bergwerf opened this issue Mar 25, 2024 · 0 comments
Open

Multi-touch zoom with multiple NGL instances #1033

bergwerf opened this issue Mar 25, 2024 · 0 comments

Comments

@bergwerf
Copy link

bergwerf commented Mar 25, 2024

If there are multiple NGL instances, then multi-touch zoom on one of them will zoom (but not pan!) every one of them. I think the issue is that touch events are attached to the document (such that handling continues if you are no longer hovering the element), but the touch move event does not determine if the event started in this instance of the viewer:

_onTouchmove (event: TouchEvent) {
if (event.target === this.domElement) {
event.preventDefault()
this.overElement = true
} else {
this.overElement = false
}

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

No branches or pull requests

1 participant