Skip to content

Allow moving the panorama using touch events and add autorotation#1

Open
quelbs wants to merge 19 commits intomahonnaise:masterfrom
quelbs:master
Open

Allow moving the panorama using touch events and add autorotation#1
quelbs wants to merge 19 commits intomahonnaise:masterfrom
quelbs:master

Conversation

@quelbs
Copy link
Copy Markdown

@quelbs quelbs commented Jan 8, 2013

I added touchstart, touchmove and touchend events to allow moving the image on touch devices. Additional adjustment of receiving pageX values was required.

quelbs added 7 commits January 8, 2013 22:34
 - added touchstart, touchmove and touchend events to allow moving the image on touch devices. Additional adjustment of receiving pageX values was required.
- reset the dampingFactor to default value if out of range
Added new option autorotation to allow initial rotation. Hint: to prevent slowdown of rotation set dampingFactor to 1.
Apply cyclotron to all objects with class cyclotron on load.
To allow non continuous images that stop at the border the new option continuous checks the offset when set to 0 and prevents scrolling beyond the image border.
@quelbs
Copy link
Copy Markdown
Author

quelbs commented Feb 19, 2013

I did some more improvements including adding an autorotation option and a continuous option

@milewska
Copy link
Copy Markdown

This is fantastic! Works like a dream for me...

quelbs and others added 4 commits April 25, 2014 17:11
Thank you MarcaTyron for your hint to improve compatibilty with other scripts by replacing $ with jQuery
Use same license as main origin.
@quelbs quelbs changed the title Allow moving the panorama using touch events Allow moving the panorama using touch events and add autorotation Feb 25, 2016
- if autorotation is active and non continuous is selected turn around on the image border
In case of images resized by background-size calculate the width with getBackgroundWidth function
- Use .one load handler to determine max value always after the image is loaded
- change .bind to .on for compatibility
- prevent usage of $, prefer jQuery
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

Successfully merging this pull request may close these issues.

5 participants