Overview
Purpose: Generates mousedown events at intervals for as long as the mouse is down.
This mixin works at the beginning of the Elix render pipeline:
events ➞ methods → setState → render DOM → post-render
Provides the component with:
- mouse and touch event handlers which let the component raise synthetic
mousedownevents for as long as the user holds down the mouse. repeatDelayDurationstate member indicating how long (in milliseconds) after the user presses the mouse down should the mixin wait before firing syntheticmousedownevents. The default value is 500 (half a second).repeatIntervalDurationstate member indicating how much time should elapse (in milliseconds) between syntheticmousedownevents. Default value is 50 (a tenth of a second).
API
Used by classes PlainRepeatButton and RepeatButton.