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

[Firefox Android] Camera reverses direction on quick swipe or pan. #1280

Open
timbotimbo opened this issue Apr 5, 2024 · 3 comments
Open
Labels
bug help wanted Issues that require help from other developpers

Comments

@timbotimbo
Copy link

timbotimbo commented Apr 5, 2024

Describe the bug

I was testing the compatibility of this package with various browsers and noticed this touch issue on Android Firefox.

Dragging a finger slowly over the viewer moves the camera as expected.
However on quicker movements, the camera will sometimes bounce back in the opposite direction.

It seems like the touch event of the finger lifting up is detected as a new movement.

Video
This screen recording starts with 3 slow swipes, that work normally. Followed by some fast swipes that sometimes show the bounce back in the wrong direction.

recording.mp4

Reproduction project
You don't need any specific example to replicate this, I can do this on any demo or example on the documentation website.

Android Browsers

Android devices
I tested this on 2 android phones with different versions. It is easier to trigger on the S20FE, but happens on both devices.

  • Samsung S20FE, Android 13
  • Samsung S8, Android 9

Online demo URL

https://photo-sphere-viewer.js.org/demos/basic/0-config.html

Photo Sphere Viewer version

5.7.2

Plugins loaded

None

OS & browser

Android 9 & 13, FireFox app v124.3.0

Additional context

I can not reproduce this using the developer tools of Firefox on Windows 10, it only shows up on mobile.

This does not show up on any chromium browsers on Android.
This does not sow up on Firefox on iOS.

testing with other projects based on threejs:

  • I can't trigger anything similar in google's model-viewer.
  • In the deprecated Panolens I occasionally see something similar happening, but the camera stops moving instead of bouncing in the other direction. (which is less annoying)
@timbotimbo timbotimbo added the bug label Apr 5, 2024
@mistic100
Copy link
Owner

I cannot reproduce this on the single phone I have at hand

@mistic100 mistic100 added the help wanted Issues that require help from other developpers label Apr 5, 2024
@Rai-Rai
Copy link

Rai-Rai commented Apr 12, 2024

Can't reproduce this
Tried on Pixel 4a with Android 13 and Firefox 124.2.0

@yuan116
Copy link

yuan116 commented May 1, 2024

Hi, i able to reproduce it but it was in mobile app version wrap with capacitorjs

it happen in my device (Oppo Find X2)

i created the repo with steps written in README.md
https://github.com/yuan116/capacitor-photo-sphere-viewer-bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug help wanted Issues that require help from other developpers
Projects
None yet
Development

No branches or pull requests

4 participants