Right click gesture & scroll gesture improvement in relative touch (trackpad) mode;

CustomTapGestureRecognizer improvement.
This commit is contained in:
True Zhuanjia committed 2024-06-17 21:45:11 +08:00
1 parent c6785e3728
commit ec4299fd88
4 files changed
+50 -19

No files matched your search

+8 -4
View File
@@ -11,12 +11,16 @@
@interface CustomTapGestureRecognizer : UIGestureRecognizer
@interface CustomTapGestureRecognizer : UIGestureRecognizer{
CGFloat lowestTouchPointYCoord;
}
@property (nonatomic, assign) uint8_t numberOfTouchesRequired;
@property (nonatomic, assign) double tapDownTimeThreshold;
@property (atomic, readonly) CGFloat lowestTouchPointHeight;
@property (nonatomic, assign) double tapDownTimeThreshold; // tap down threshold in seconds.
@property (nonatomic, readonly) CGFloat lowestTouchPointHeight;
@property (nonatomic, readonly) bool gestureCaptured;
@property (nonatomic, readonly) NSTimeInterval gestureCapturedTime;
@end
#endif /* CustomTapGestureRecognizer_h */