This introduces beforeTouchStart and beforeDoubleClick, and deprecates onTouch and onDoubleClick.
Both beforeTouchStart and beforeDoubleClick allow returning true to ignore the event, similar to beforeWheel and beforeMouseDown, thus unifying the event API. This change is backward compatible, as both onTouch and onDoubleClick still support the original behavior.
This introduces
beforeTouchStart
andbeforeDoubleClick
, and deprecatesonTouch
andonDoubleClick
.Both
beforeTouchStart
andbeforeDoubleClick
allow returningtrue
to ignore the event, similar tobeforeWheel
andbeforeMouseDown
, thus unifying the event API. This change is backward compatible, as bothonTouch
andonDoubleClick
still support the original behavior.