jaukia / zoomooz

An easy-to-use jQuery plugin for making zooming web pages.
http://janne.aukia.com/zoomooz/
1.79k stars 275 forks source link

Drag in zoom #83

Closed elioscordo closed 11 years ago

elioscordo commented 11 years ago

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 11 years ago

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 11 years ago

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 commented 11 years ago

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