FormidableLabs / FormidableLabs/react-swipeable
how can I fire an event for swipe start and swipe end?
オープン
- 主要言語
- TypeScript
- スター
- 2.1k
- フォーク
- 149
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
I'm attempting to simulate a joystick behaviour using your library.
Expectation:
- A swipe and hold should fire the `onSwiping` event
- The continuous gesture of swiping should not be necessary
The solution I have in mind would be to fire an event when the swiping starts, and another when the touch is released.
What is your suggestion to achieve this behavior?
Thank you for your time 👍
コントリビューションガイド
調査の方向性
まず、onSwiping に対する既存の react-swipeable フックの動作と、タッチ解除の処理を読みます。swipe-start イベントと swipe-end イベントがサポートされているのか、それとも新しい API が必要なのかを判断し、次にイベントの想定タイミングを定義して、ジョイスティックのように押し続ける動作を検証します。issue ではソースファイルやテストは指定されていません。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- react, typescript
- 領域
- frontend
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100