ionic-team / ionic-team/ionic-framework
feat: ion-modal sheet allow disabling moving on content drag
- 主要语言
- 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/docs/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
An option to be able to disable the behavior of content drag to move between breakpoints would be nice for contents that have moveable features like an image-resizer library.
### Describe the Use Case
A image-resizer lib inside modal content, currently the hole sheet modal moves while dragging the image inside the resizer lib.
### Describe Preferred Solution
A new option "disableContentBreakpointDrag" or something like that.
### Describe Alternatives
Tried disabling it with CSS but its quiet hard.
### Related Code
_No response_
### Additional Information
_No response_
贡献指南
调研方向
Start by locating the ion-modal implementation and the logic that handles content dragging between breakpoints. Review how modal options are exposed and how related interaction tests are organized. Done means an option can disable movement caused by dragging modal content while preserving other modal behavior.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- typescript
- 领域
- frontend
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100