Constructors

Properties

currentIsLongPress: boolean = false

Flag to indicate if the current press is a long press.

currentLongPressPosition: null | number = null

Position of the current long press.

currentNumberOfPressesCounter: number = 1

Counter to count the number of presses.

currentUnstablePosition: number = 0

Position of the current unstable position which is debounced

debounceTimer?: Timer

Timer to debounce the raw position.

longPressTimer?: Timer

Timer to detect a long press.

multiPressTimer?: Timer

Timer to detect multi presses.

previouslyReportedPosition: number = 0

Position previously reported in events.

previousMultiPressPosition: null | number = null

Position of the previous multi press.