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

Reverse rotation/drag direction #70

Open
davidmittelberg opened this issue Apr 15, 2015 · 4 comments
Open

Reverse rotation/drag direction #70

davidmittelberg opened this issue Apr 15, 2015 · 4 comments

Comments

@davidmittelberg
Copy link

Is there a way to reverse the rotation of the image when dragging?

@creativeaura
Copy link
Owner

Can you please explain ?

@dominiklessel
Copy link

I've got the same "problem". In our capturing process we spin the objects clockwise, but 360slider is expecting the images to spin counterclockwise. So a reverse option would be nice to have 👍

@yvestan
Copy link

yvestan commented Jun 2, 2015

Work for me, on line 476 and 478 threesixty.js, you can replace :

      AppConfig.currentFrame + Math.ceil

with

      AppConfig.currentFrame - Math.ceil

and

      AppConfig.currentFrame + Math.floor

with

      AppConfig.currentFrame - Math.floor

On https://github.com/creativeaura/threesixty-slider/blob/master/src/threesixty.js#L476

      AppConfig.endFrame = AppConfig.currentFrame + Math.ceil((AppConfig.totalFrames - 1) * AppConfig.speedMultiplier * (AppConfig.pointerDistance / base.$el.width()));
      }else{
      AppConfig.endFrame = AppConfig.currentFrame + Math.floor((AppConfig.totalFrames - 1) * AppConfig.speedMultiplier * (AppConfig.pointerDistance / base.$el.width()));
      }

Could be a configuration option (eg : AppConfig.rotationDirection) ?

@yvestan yvestan mentioned this issue Jul 28, 2015
egardner added a commit to thegetty/terracottas that referenced this issue Oct 8, 2015
Modify Javascript code to reverse image rotation direction, per this
discussion on GitHub:

creativeaura/threesixty-slider#70

Hopefully in the future this will be provided by a config option – in
the meantime this means that the project will use a non-standard version
of this JS plugin for now.
egardner added a commit to thegetty/terracottas that referenced this issue Dec 8, 2015
Modify Javascript code to reverse image rotation direction, per this
discussion on GitHub:

creativeaura/threesixty-slider#70

Hopefully in the future this will be provided by a config option – in
the meantime this means that the project will use a non-standard version
of this JS plugin for now.
@brospars
Copy link

You can just reverse se rotation by changing the speedMultiplier in the AppConfig to -7 (default being 7)

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

No branches or pull requests

5 participants