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

Drag in zoom #83

Closed
elioscordo opened this issue Nov 7, 2013 · 3 comments
Closed

Drag in zoom #83

elioscordo opened this issue Nov 7, 2013 · 3 comments

Comments

@elioscordo
Copy link

Hi, thanks for the good plugin.

I am trying to provide a scrolling navigation in zoom similar to the hand drag in photoshop.

Do you think is possible?

How can I access the trasform origin?

Would like to do something like this:

var bias_x = 0;
var bias_y = 0;

$(".container").mousedown(function(e) {
    bias_x = e.pageX;
    bias_y = e.pageY;

});
$(".container").mouseup(function(e) {
bias_x -= e.pageX;
bias_y -= e.pageY;
alert($(this).css("transform-origin"));
// change the transform origin
});

@DanielRuf
Copy link
Contributor

Do you mean actually something like this: https://github.com/zynga/scroller

http://zynga.github.io/scroller/demo/dom.html (disable/untick Locking)

@jaukia
Copy link
Owner

jaukia commented Nov 8, 2013

Drag-scrolling is not unfortunately possible with Zoomooz. See if Zynga scroller or FT Scroller (http://labs.ft.com/articles/ft-scroller/) would suite your needs.

@jaukia
Copy link
Owner

jaukia commented Nov 9, 2013

Actually, I think this is a duplicate of #25 so closing the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants