Class: Event

lime.events.Event

new lime.events.Event(dispatcher)

Dfkit Event object
Parameters:
Name Type Description
dispatcher lime.events.EventDispatcher Dispatcher.
Source:

Summary

Methods
clone() → {lime.events.Event}
Retunr new event with same parameters
release(opt_type)
Release all swllowed handlers.
startDrag(snapToCenter, box, opt_targetObject) → {lime.events.Drag}
Start dragging sequence from current event
swallow(type, handler, opt_deny_shared)
Swallow an event. This means that next event from the same interaction will be sent directly to handler without any search

Methods

clone() → {lime.events.Event}

Retunr new event with same parameters
Source:
Returns:
event.
Type
lime.events.Event

release(opt_type)

Release all swllowed handlers.
Parameters:
Name Type Argument Description
opt_type string | Array.<string> <optional>
Event types to release.
Source:

startDrag(snapToCenter, box, opt_targetObject) → {lime.events.Drag}

Start dragging sequence from current event
Parameters:
Name Type Argument Description
snapToCenter boolean Drag from center or not.
box goog.math.Box Limited area where dragging is possible.
opt_targetObject lime.Node <optional>
Different target object to drag.
Source:
Returns:
New Drag object.
Type
lime.events.Drag

swallow(type, handler, opt_deny_shared)

Swallow an event. This means that next event from the same interaction will be sent directly to handler without any search
Parameters:
Name Type Argument Description
type string | Array.<string> Event types to swallow.
handler function Function to call on event.
opt_deny_shared boolean <optional>
Deny further actions for same event.
Source: