terrymun / paver

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

destroy paver on a specific point #25

Open AlaaElZein opened 6 years ago

AlaaElZein commented 6 years ago

Hello, On a specific point we need to stop the paver (to fix the image in android). But when we use the .destroy function the paver is destroyed but on the position 0. i need to fix it in a specific position and not on position 0. what we can do about it?

terrymun commented 6 years ago

Right now that’s not possible—even though a panEnd event is emitted, it does not contain any data on the state and/or position of the panorama. Technically speaking this is a design flaw of sorts, since I can see why these information can be useful.

You can look into the source and add data to the panEnd event manually. I’ll probably push an update for it in a month or two.