TimelineDomEvents
Mixin
Mixin that handles dom events (click etc) for scheduler and rendered events. Provides the base event processing pipeline that identifies which schedule element was interacted with and fires corresponding component events.
See also
- SchedulerDomEvents - Scheduler DOM events
- TimelineBase - Timeline base class
Configs
Configs are options you supply in a configuration object when creating an instance of this class-
Set to
trueto ignore reacting to DOM events (mouseover/mouseout etc) while scrolling. Useful if you want to maximize scroll performance.
Properties
Properties are getters/setters or publicly accessible variables on this class-
Identifies an object as an instance of TimelineDomEvents class, or subclass thereof.
-
Identifies an object as an instance of TimelineDomEvents class, or subclass thereof.
-
The currently hovered timeline context. This is updated as the mouse or pointer moves over the timeline.
Functions
Functions are methods available for calling on the class-
initDomEvents( )private
Adds listeners for DOM events for the scheduler and its events. Which events is specified in Scheduler#schedulerEvents.
-
onElementMouseOut( )private
Relays mouseout events as eventmouseleave if out from rendered event. Also removes Scheduler#overScheduledEventClass from the hovered element.
-
onElementMouseOver( )private
Relays mouseover events as eventmouseenter if over rendered event. Also adds Scheduler#overScheduledEventClass to the hovered element.
-
onScheduleScroll( )private
This handles the scheduler being scrolled below the mouse by trackpad or keyboard events. The context, if present needs to be recalculated.