Skip to main content Link Menu Expand (external link) Document Search Copy Copied

kindle.gestures

A set of overridable functions which are called when the user performs a gesture, configured here in the config.xml file.

This section of the documentation is UNFINISHED.

Only onswipe and ontap work with Mesquito due to the store’s config.xml file

kindle.gestures.onswipe

kindle.gestures.onswipe(direction, pageX, pageY)

Triggered whenever the user swipes on the Kindle screen, has 3 parameters, including single string parameter which is the swipe direction, and pageX and pageY parameters indicating the location of the swipe on the page.

kindle.gestures.onflick

kindle.gestures.onflick(direction)

Triggered whenever the user flicks on the Kindle screen, only has a single string parameter which is the flick direction

kindle.gestures.onpan

kindle.gestures.onpan(event)

Triggered whenever the user pans? the kindle screen. It is unknown what the event parameter holds.

kindle.gestures.onpinch

kindle.gestures.onpinch(event)

Triggered whenever the user pinches the kindle screen. It is unknown what the event parameter holds.

kindle.gestures.onhold

kindle.gestures.onhold(event)

Triggered whenever the user holds down on the kindle screen. It is unknown what the event parameter represents.

kindle.gestures.onzoom

kindle.gestures.onzooms(event)

Triggered whenever the user performs the zoom gesture on the kindle screen. It is unknown what the event parameter holds.

kindle.gestures.ontap

kindle.gestures.ontap(event)

Triggered whenever the user taps the kindle screen. It is unknown what the event parameter holds.