Methods
add(event)
Add scroll.
Parameters:
Name | Type | Description |
---|---|---|
event | object | The wheel event. |
- Source
clear()
Clear the scroll sum.
- Source
getSum() → {number}
Get the scroll sum.
- Source
Returns:
The scroll sum.
- Type:
- number
isTick() → {boolean}
Does the accumulated scroll correspond to a 'tick'.
- Source
Returns:
True if the sum corresponds to a 'tick'.
- Type:
- boolean