manual lint

This commit is contained in:
Henry Jameson 2026-01-06 17:32:22 +02:00
commit 1c53ac84cc
36 changed files with 204 additions and 107 deletions

View file

@ -93,12 +93,14 @@ class SwipeAndClickGesture {
perpendicularTolerance = 1.0,
disableClickThreshold = 1,
}) {
const nop = () => {}
const noop = () => {
/* no-op */
}
this.direction = direction
this.swipePreviewCallback = swipePreviewCallback || nop
this.swipeEndCallback = swipeEndCallback || nop
this.swipeCancelCallback = swipeCancelCallback || nop
this.swipelessClickCallback = swipelessClickCallback || nop
this.swipePreviewCallback = swipePreviewCallback || noop
this.swipeEndCallback = swipeEndCallback || noop
this.swipeCancelCallback = swipeCancelCallback || noop
this.swipelessClickCallback = swipelessClickCallback || noop
this.threshold =
typeof threshold === 'function' ? threshold : () => threshold
this.disableClickThreshold =