Zoom on Ipad with Javascript

0

I have an HTML5 presentation that runs on the Ipad with slider controls on the 'Swipe' (Swipe right or left). However, when the swipe occurs, the slide is released. I've added the following code to truncate:

    $(document).ready(function() {
        $(".wrapper").bind('touchmove', function (e) {
        e.preventDefault();
        return true;
        });
    });

But with this code, the zoom (pinch) stops working. Is there any way to enable zoom with this code entered?

This is the code that does not work.

node.addEventListener('gestureend', function(e) {
if (e.scale < 1.0) {
    // User moved fingers closer together
} else if (e.scale > 1.0) {
    // User moved fingers further apart
}
}, false);
    
asked by anonymous 25.02.2016 / 19:21

0 answers