Skip to content
Gary Soedarsono edited this page Jan 13, 2015 · 9 revisions

pb.HammerWrapper

static

Wrapper around Hammer JS.

Methods

on

on(!Element el, String gestureType, !Function handler)

Registers the given gesture to the given element and handler.

el !Element The element to register.
gestureType String The type of Hammer JS gesture to register.
handler !Function The handler function to register.

off

off(!Element el, String gestureType, !Function handler)

Unregisters the given gesture from the given element and handler.

el !Element Element to unregister from.
gestureType String Type of Hammer JS gesture to register.
handler !Function The handler function to unregister.

Clone this wiki locally