Similar to jQuery.Widget
, the mouse interaction is not intended to be used directly. It is purely a base layer for other widgets to inherit from. This page only documents what is added to jQuery.Widget
, but it does include internal methods that are not intended to be overwritten. The intended public API is _mouseStart()
, _mouseDrag()
, _mouseStop()
, and _mouseCapture()
.
_create()
method.
_destroy()
method.
delay
and distance
options are met prior to starting the interaction. When the interaction is ready to start, invokes the _mouseStart()
method for the extending widget to handle.
mouseDrag()
method for the extending widget to handle.
mouseStop()
method for the extending widget to handle.
distance
option has been met for the current interaction.
delay
option has been met for the current interaction.
_mouseStart()
method to handle the beginning of an interaction. This method will receive the mouse event associated with the start of the interaction.
_mouseDrag()
method to handle each movement of an interaction. This method will receive the mouse event associated with the movement.
_mouseStop()
method to handle the end of an interaction. This method will receive the mouse event associated with the end of the interaction.
true
.