terrymun / paver

Paver, a panorama/image viewer replicating the effect seen in Facebook Pages app
MIT License
123 stars 38 forks source link

Panorama on mobile is aligned left even with startPosition: 0.5 #9

Closed user928 closed 7 years ago

user928 commented 7 years ago

Hello panorama image is aligned to left edge of screen on mobile devices (chrome android, safari ios) even when I use: startPosition: 0.5 ? On desktop computers is working fine.

terrymun commented 7 years ago

The issue you are facing is two-fold: (1) the deviceOrientation event listening is bonked in a recent demo, but has been fixed as of 5147516, and (2) as per documentation, when deviceOrientation is being listened on, the startPosition option will be ignored: "This option will be nullified when gyroscopic data is in use."