()
| 19 | |
| 20 | impl GestureRecognizer { |
| 21 | pub fn new() -> Self { |
| 22 | Self { |
| 23 | tap_timeout: Duration::from_millis(200), |
| 24 | long_press_timeout: Duration::from_millis(500), |
| 25 | double_tap_timeout: Duration::from_millis(300), |
| 26 | handlers: Vec::new(), |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | pub fn on_gesture<F>(&mut self, handler: F) |
| 31 | where |
nothing calls this directly
no outgoing calls
no test coverage detected