Class Event
Class defined in:src/event.js:4
collectEventData( element, eventType, touches, ev )
src/event.js:282
collect basic event data
Parameters:-
element<HTMLElement> -
eventType<String>matches
EVENT_START|MOVE|END -
touches<Array> -
ev<Object>
ev
determineEventTypes( )
src/event.js:201
we have different events for each device/browser
determine what we need and set them in the EVENT_TYPES constant
the onTouch method is bind to these properties.
events
doDetect( ev, eventType, element, handler )
src/event.js:131
the core detection method this finds out what hammer-touch-events to trigger
Parameters:-
ev<Object> -
eventType<String>matches
EVENT_START|MOVE|END -
element<HTMLElement> -
handler<Function>
triggerType matches EVENT_START|MOVE|END
getTouchList( ev, eventType )
src/event.js:244
create touchList depending on the event
Parameters:touches
off( element, type, handler, [hook] )
src/event.js:51
simple event unbinder with a hook and support for multiple types
Parameters:-
element<HTMLElement> -
type<String> -
handler<Function> -
[hook]<Function>type<Object>
on( element, type, handler, [hook] )
src/event.js:34
simple event binder with a hook and support for multiple types
Parameters:-
element<HTMLElement> -
type<String> -
handler<Function> -
[hook]<Function>type<Object>
onTouch( element, eventType, handler )
src/event.js:68
the core touch event handler. this finds out if we should to detect gestures
Parameters:-
element<HTMLElement> -
eventType<String>matches
EVENT_START|MOVE|END -
handler<Function>
onTouchHandler the core event handler
prevent_mouseevents <Boolean>
src/event.js:9
when touch events have been fired, this is true this is used to stop mouse events