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

Add 'toggle-drag' zoom strategy #46

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rylwin
Copy link

@rylwin rylwin commented Feb 21, 2014

Added a new zoom strategy for a project I'm working on. Not sure if there'd be interest in including this in the official package but wanted to offer it up. Thanks for the great plugin!


This zoom strategy allows users to zoom in on an image and move their mouse to
find the desired area of the image where they want to remain zoomed in. After
finding this area, they can click to hold the zoom in the current position,
allowing them to perform other tasks on the page while keeping zoomed in on the
desired location.

  • First click: initiate zoom, follow mouse movements
  • Second click: keep zoom, stop following mouse
  • Third click: stop zoom (back to initial state)

This zoom strategy allows users to zoom in on an image and move their mouse to
find the desired area of the image where they want to remain zoomed in. After
finding this area, they can click to hold the zoom in the current position,
allowing them to perform other tasks on the page while keeping zoomed in on the
desired location.

* First click: initiate zoom, follow mouse movements
* Second click: keep zoom, stop following mouse
* Third click: stop zoom (back to initial state)
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.

None yet

1 participant