ionic-team / ionic-framework

A powerful cross-platform UI toolkit for building native-quality iOS, Android, and Progressive Web Apps with HTML, CSS, and JavaScript.
https://ionicframework.com
MIT License
51.1k stars 13.51k forks source link

feat: max touches/min touches functionality should be added to the gesture utility #21136

Open wilk-polarny opened 4 years ago

wilk-polarny commented 4 years ago

Bug Report

Ionic version:

[x] 5.x

Current behavior: When navigating back using the swipeback gesture, it is possible to let the previous page jump and flicker by adding additional (multi touch) input using other fingers.

In practice, this happens accidentally when another part of the same or another hand covers the susceptible area (the previous page), resulting unwanted nav actions.

I don't even know whether this counts a bug, it's just a thing users have noticed and which feels a little bit off compared to the swipeback behaviour on iOS.

Expected behavior: The page transition should be unaffected by additional touch input.

Steps to reproduce: --> In an Ionic Angular App:

Related code:

None.

Other information:

swipeback-bug

Ionic info:

Ionic:

   Ionic CLI                     : 6.6.0 (/Users/xxx/.nvm/versions/node/v10.16.3/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 5.0.7
   @angular-devkit/build-angular : 0.803.26
   @angular-devkit/schematics    : 8.3.26
   @angular/cli                  : 8.3.26
   @ionic/angular-toolkit        : 2.2.0

Cordova:

   Cordova CLI       : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms : ios 5.1.1
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.0, (and 4 other plugins)

Utility:

   cordova-res (update available: 0.13.0) : 0.8.1
   native-run                             : 1.0.0

System:

   ios-deploy : 1.10.0
   ios-sim    : 8.0.2
   NodeJS     : v10.16.3 (/Users/xxx/.nvm/versions/node/v10.16.3/bin/node)
   npm        : 6.9.0
   OS         : macOS Catalina
   Xcode      : Xcode 11.4.1 Build version 11E503a
Sampath-Lokuge commented 2 years ago

No, you cannot capture multiple gestures from the same element at the moment. If you have multiple gestures on different elements, but the elements intersect that also may cause some unexpected behavior in event dispatching.

Any chance this is working on now in 2022? i.e. I have tried it. But it is not working yet. Your thoughts or workaround/alternatives, please?

Ref: https://forum.ionicframework.com/t/is-it-possible-to-get-two-simultaneous-gesture-events/217577/3

bxff commented 1 year ago

Any update in 2023?

timrobot commented 1 day ago

I understand that this issue has been open for awhile, and I understand that perhaps its not the highest priority to get multiple fingers to work, at least in a stable version. However, I do know that react-native does have multiple finger event tracking (see https://reactnative.dev/docs/next/gesture-responder-system), and it would be nice to have it in this type of framework, especially for people intent on developing more interesting applications involving potentially game development and/or graphics.

Is there a beta branch or perhaps any plans to involve multi-finger event support any time soon?