Skip to content

Commit 46e0610

Browse files
authored
Support for touch gestures on web/GestureView by creating a common base component (#1167)
* Moved most of the logic from the native-common/GestureView control into a straight common/GestureView abstract base component, and changed much of the logic away from using raw events as inputs and into the processed RX GestureState types. Pulled a bunch of the duplicate logic out of web/GestureView and used the new base class. Added touchstart/move/end support to web/GestureView to now reuse the touch code out of the common GestureView to get web touch support in GestureView! * Fixing issues on native * PR feedback
1 parent 8d82ebf commit 46e0610

File tree

10 files changed

+840
-844
lines changed

10 files changed

+840
-844
lines changed

src/android/GestureView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class GestureView extends BaseGestureView {
2222
return _preferredPanRatio;
2323
}
2424

25-
protected _getEventTimestamp(e: Types.TouchEvent): number {
25+
protected _getEventTimestamp(e: Types.TouchEvent | Types.MouseEvent): number {
2626
let timestamp = e.timeStamp;
2727

2828
// Work around a bug in some versions of RN where "timestamp" is

0 commit comments

Comments
 (0)