ionic-team / ionic-team/ionic-framework

feat: generic touch gestures (press, pinch, etc)

オープン
#19,183 コメント 35 件 リアクション 16 件 担当者 0 名 GitHub で見る
package: core type: feature request
主要言語
TypeScript
スター
52.7k
フォーク
13.3k
平均マージ
1日 15時間
マージ済み PR(30日)
51

説明

# Feature Request

**Ionic version:**
ionic v4
ionic/angular: 4.7.1
ionic-cli: 5.2.5

**Describe the Feature Request**
Since Ionic 4 there are no more touch gestures like press (long press).
For a mobile framework, this is a very important part.
This have to be an official supported feature in such a UI.
The developer of Ionic should not hack for this feature.
Like [this](https://medium.com/madewithply/ionic-4-long-press-gestures-96cf1e44098b) or [this](https://stackoverflow.com/a/41322757/9251185).

**Describe Preferred Solution**
Ionic should provide this feature in an official way. No hacks. No polyfills.
I can not say which solution would be the best.
Maybe use Angular with Hammerjs. Or build an own touch lib.

**Related Code**
Ionic 3:

```html
Press me long.
```

```ts
import { Gesture } from 'ionic-angular/gestures/gesture';
// ...
this.pressGesture = new Gesture(this.nativeElement);
this.pressGesture.listen();
this.pressGesture.on('press', event => {/*...*/});
// ...
```

In Ionic 4 this is not possible anymore. 😢 Or did I miss something?
Any questions? I'm glad if I can help.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Start by comparing the Ionic 3 Gesture API shown in the issue with the Ionic 4 gesture behavior, and review the proposed Angular/HammerJS approach and linked examples. Define the supported gesture set and API before implementing it; done should provide official press and other touch gestures without application-level hacks or polyfills.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
angular, typescript
領域
frontend, mobile-dev
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。