Q: We wanted to override the pinch zoom in Mobile PDF viewer for iPad/
Android and replace with a double tap to a fixed zoom ratio. Is this
possible and then have control over the page navigation in the zoomed
state.
So to clarify – double tap zoom, double tap again unzoom.
--------------
A: jQuery mobile, does not have a double tap event so you would need
to use a different library.
For example, you could use the approach described on the following
page
http://appcropolis.com/blog/implementing-doubletap-on-iphones-and-ipads/.
Once you have the event you can do something like the following:
var zoomed = false;
$(document).bind(“doubletap”, function(){
If (zoomed === false){
zoomed = true;
//zoom to 250%
me.docViewer.ZoomTo(2.5);
}else{
zoomed = false;
//zoom to 100%
me.docViewer.ZoomTo(1);
}
});