Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disables pinch zoom on Ipad #67

Open
michaelDotco2 opened this issue Jun 27, 2014 · 2 comments
Open

Disables pinch zoom on Ipad #67

michaelDotco2 opened this issue Jun 27, 2014 · 2 comments

Comments

@michaelDotco2
Copy link

Hi I am using this plugin as Kinetic.js (html 5 canvas library) disables scroll when tyring to scroll over stage objects. This plugin seems to resolve this issue.

However I notice that it also disable pinch zoom. Is this the correct behavour?
I am applying it as to the body and html elements like so:

$('html,body').kinetic();

@davetayls
Copy link
Owner

yep, i expect it will disable zoom because it does a preventDefault. you could look in to adding an option for event passthrough

@kennardconsulting
Copy link

This library is still useful on iOS, even after all this time, as -webkit-overflow-scrolling: touch is very flickery. If it helps anyone, you can enable pinch-to-zoom by doing:

filterTarget: function( target, e ) {
    if ( e.originalEvent.touches !== undefined && e.originalEvent.touches.length > 1 ) {
        return false;
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants