terrymun / paver

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

start position 0 is not working on android #24

Closed AlaaElZein closed 6 years ago

AlaaElZein commented 6 years ago

Hello, in the jquery.paver.js file we have changed the startPosition value to 0. And also in the main page of out project where we have the paver we initialise it as following: $(function () { // Paver $('div[data-paver]').paver({ startPosition: '0', // tilt: false }); });

And also in the div of the paver we have add the following:

and even when we test our code on mobile, the paver is not starting from the beginning of the image. how can we solve it?
terrymun commented 6 years ago

See http://terrymun.github.io/paver/demo/usage-notes.html#config__start-position. The config is ignored when gyroscopic data is available.

If you want to implement it, you will probably have to make small changes to the gyroscope logic to accept that argument.