FormidableLabs / FormidableLabs/react-swipeable

how can I fire an event for swipe start and swipe end?

オープン
#327 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
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

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

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