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

Scroll in image with only one finger in touch devices causes rubberbanding #1244

Open
Quanos-Matti opened this issue Dec 4, 2024 · 4 comments

Comments

@Quanos-Matti
Copy link

When i use only one finger on some touch devices to "scroll" in the image, the image snaps back in a rubberbanding way. When i use two fingers on those devices, everything works fine.
Device with no problems: Sony Smartphone ,Android 12, Chrome Browser Version 131.0.6778.81
Device with rubberbanding: Samsung Galaxy Tab, Android 10, Chrome Browser Version 129.0.6668.100

@strarsis
Copy link
Contributor

strarsis commented Dec 4, 2024

dragConfirm option may be interesting to prevent unintended scrolling on page main axis when panning the panorama:
https://github.com/mpetroff/pannellum/blob/master/doc/json-config-parameters.md#dragconfirm-boolean-or-string

@Quanos-Matti
Copy link
Author

But the default is false and that is described as the right option for panning with one finger, or do i get anything wrong?

@strarsis
Copy link
Contributor

strarsis commented Dec 4, 2024

You are correct. It should work either way, just with one or two fingers, depending on the option.

@mpetroff
Copy link
Owner

mpetroff commented Dec 5, 2024

The rubberbanding shouldn't ever happen, and there's nothing in Pannellum that I can think of that could cause it. And it obviously isn't Chrome, since you don't see it on your other device (and I've never seen it with Chrome on Android either).

My guess is that Samsung is doing something silly with the touch input prior to passing it to Chrome. I found a thread that suggests that there's an "adaptive" motion smoothing setting that might cause this: https://us.community.samsung.com/t5/Galaxy-S21/Scrolling-issue-with-Chrome/td-p/1698753

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

3 participants