ionic-team / ionic-team/ionic-framework

feat: swipe to go back anywhere on view

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

描述

### Prerequisites

- [X] I have read the [Contributing Guidelines](https://github.com/ionic-team/ionic-framework/blob/main/.github/CONTRIBUTING.md#creating-an-issue).
- [X] I agree to follow the [Code of Conduct](https://ionicframework.com/code-of-conduct).
- [X] I have searched for [existing issues](https://github.com/ionic-team/ionic-framework/issues) that already include this feature request, without success.

### Describe the Feature Request

Swipe to go back with the gesture initiating anywhere on the screen

### Describe the Use Case

Users have:

1. accessibility issues
2. bulkier phone cases
3. gloves

that prevents, or make it difficult to, swipe from the left edge of the device.

### Describe Preferred Solution

Full screen page swipe works by default, unless the swipe gesture starts on another swipeable element (like ion-item-sliding)

### Describe Alternatives

I do not believe this is possible to implement without a library change.

### Related Code

_No response_

### Additional Information

> **Note** I'm aware that this would require all ion-sliding-item to be disabled. I'm fine with this being done in the implementation/application code

Request from users of [wefwef](https://github.com/aeharding/wefwef): https://lemmy.world/post/1028383

Related issue: https://github.com/aeharding/wefwef/issues/101

贡献指南

打开贡献指南

调研方向

Start by locating the framework's full-screen swipe gesture handling and the ion-item-sliding interaction mentioned in the request. Determine how the gesture should coexist with other swipeable elements, then verify that navigation works from anywhere on the screen without breaking ion-item-sliding behavior.

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

评估

技术栈
typescript
领域
frontend, mobile
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

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