jaukia/zoomooz

Drag in zoom

Closed this issue · 3 comments

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
});

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

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

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.

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