Dispatched with a short delay after MouseEvent.MOUSE_DOWN
or
TouchEvent.TOUCH_BEGIN
.
Available since
1.0.0
.Static variables
staticinlineread onlyLONG_PRESS:EventType<LongPressEvent> = "longPress"
The LongPressEvent.LONG_PRESS
event type is dispatched when a button
is long pressed. If dispatched, the button will not dispatch
TriggerEvent.TRIGGER
.
Available since
1.0.0
.Static methods
staticdispatchFromMouseEvent(dispatcher:IEventDispatcher, mouseEvent:MouseEvent):Bool
Dispatches a pooled event with the specified properties.
LongPressEvent.dispatchFromMouseEvent(component, event);
Available since
1.0.0
.staticdispatchFromTouchEvent(dispatcher:IEventDispatcher, touchEvent:TouchEvent):Bool
Dispatches a pooled event with the specified properties.
LongPressEvent.dispatchFromTouchEvent(component, event);
Available since
1.0.0
.staticfromMouseEvent(event:MouseEvent, ?existing:LongPressEvent):LongPressEvent
Creates a new LongPressEvent
object from an existing MouseEvent
object of type MouseEvent.MOUSE_DOWN
.
staticfromTouchEvent(event:TouchEvent, ?existing:LongPressEvent):LongPressEvent
Creates a new LongPressEvent
object from an existing TouchEvent
object of type TouchEvent.TOUCH_BEGIN
.