Drag in zoom
Closed this issue · 3 comments
elioscordo commented
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 commented
Do you mean actually something like this: https://github.com/zynga/scroller
http://zynga.github.io/scroller/demo/dom.html (disable/untick Locking)
jaukia commented
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.