ionic-team / ionic-team/ionic-framework

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

未关闭
#21,136 6 条评论 8 个 reaction 已指派 0 人 在 GitHub 查看
package: core type: feature request
主要语言
TypeScript
星标
52.7k
派生
13.3k
平均合并
1 天 14 小时
30 天内合并 PR
50

描述

# 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:
- Navigate to any page allowing you to either go- or swipe back
- Initiate a swipeback transition and add additional (multi touch) input to the leaving page

**Related code:**

None.

**Other information:**

![swipeback-bug](https://user-images.githubusercontent.com/819238/80343394-15ae2f00-8866-11ea-9545-e8c813307ffd.gif)

**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
```

贡献指南

打开贡献指南

调研方向

首先定位处理 swipeback 转场的手势工具,并检查它如何处理额外的触摸输入。复现 issue 中描述的多点触控 swipeback 情况,然后验证额外的触摸不再改变页面转场或使其闪烁。

由索引模型根据 Issue 内容生成。

评估

技术栈
angular, typescript
领域
mobile
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
48/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。