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

Impossible to disable pinch zooming in my app #1054

Closed
3 tasks done
brunoPert opened this issue Jan 7, 2021 · 1 comment
Closed
3 tasks done

Impossible to disable pinch zooming in my app #1054

brunoPert opened this issue Jan 7, 2021 · 1 comment

Comments

@brunoPert
Copy link

brunoPert commented Jan 7, 2021

Bug Report

Problem

I've already set all the required settings in order to disable zooming in my cordova app, but I'm still able to do it:

BF.mp4

I've tried so far:

EnableViewportScale = true +

handling touchmove event, with passive: false (which works), but it blocks app scrolling.

What is expected to happen?

App shouldn't zoom in.

What does actually happen?

App zooms in

Environment, Platform, Device

Device: iphone 8.
ios: 14.3.

Version information

cordova-ios: 6.1.1.
cordova: 10.
Xcode: 12.3.

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above
@brunoPert
Copy link
Author

Fixed with:

document.addEventListener('gesturestart', (event) => { event.preventDefault(); }, 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

1 participant