Skip to content
This repository was archived by the owner on Jan 19, 2023. It is now read-only.

Conversation

@webcarrot
Copy link
Contributor

@webcarrot webcarrot commented Dec 1, 2016

Fix zoom out ( or after any "pointer" move ) behavior #25

  1. calculate current real/visible image offset
  2. calculate current relative pointer position against not zoomed image
  3. calculate next real/visible image offset
  4. calculate next offset

@webcarrot
Copy link
Contributor Author

If I find time I will add support for pinch in another PR.

@fritz-c
Copy link
Member

fritz-c commented Dec 1, 2016

It was like waking up on Christmas morning when I saw the notification for this in my inbox - I couldn't wait to try it out.

This is a huge improvement over the previous implementation. I was embarrassed that someone could lose sight of the image they were looking at by just zooming out in a certain way. This fixes all that. Thank you.

@fritz-c fritz-c merged commit 2b89c48 into frontend-collective:master Dec 1, 2016
@webcarrot webcarrot deleted the fix-zoom branch December 7, 2016 12:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants