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

Issues with zero zoom durations #56

Closed jaukia closed 11 years ago

jaukia commented 11 years ago

Hekki Janne,

thank you for your zoomooz plugin. I am building iPhone apps in html and found your plugin a great help when resizing the content to fit a iPad screen by simply zooming one of the top nodes.

but I have one suggestion: it is currently not possible to zoom an element instantly, I mean without animation.

When setting the duration to 0, the zoom is animated anyway, and when setting the duration to a tiny value ( ex: 10 or 30 ) then it gives unexpected results. It seems the element doesn't have time to fully zoom before the end of the timing.

Would be great if you could implement a 'duration zero zoom' in a future update.

All the best Clément

//

Janne:

Thanks for your feedback! Will consider this.

By using the "nativeanimation:true" and having "duration:0", the animation should happen instantly. This should work on iPhones/iPads.

//

Hello janne,

Unfortunately not, you can clearly see the zoom happening when using those settings:

                    var settings = {targetsize: 1,scalemode: "both",duration:

0,nativeanimation: true,root: jQuery("#mainWrapper")} jQuery("#zoomWrapper").zoomTo(settings);

Best regards

Clément

jaukia commented 11 years ago

I made an example case for zero-duration animations. I don't see any zooming happening on Webkit browsers. On Firefox there is a small refresh ~1 sec after zooming, but I don't know if there is anything that can be done about it.

Have a look at the example and comment if the problem reproduces in it, what browser you are using and how the problem can be identified:

http://jaukia.github.com/zoomooz/examples/instant/

jaukia commented 11 years ago

I tested the example page on Safari, Chrome, Firefox and iOs 7 on iPhone and at least with the current Zoomooz, didn't see any problems with instant animation. Also, haven't received any comments from Clément, so will close this for now.