Thread: Touch No external JS?
View Single Post
Old 10-16-2012, 02:35 PM   #4
rtmyers
Member
rtmyers began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Aug 2012
Device: iPad
Now I am trying to handle touch events from Javascript within books to be read on the Kobo Touch. I put a simple handler on the body element:

Code:
<body ontouchstart="alert('touched')">
but this event is never triggered when I touch the page. Any thoughts?

I tried querying navigator.epubReadingSystem.hasFeature("touch-events") (see http://code.google.com/p/epub-revisi...bReadingSystem), but it turns out navigator.epubReadingSystem is not defined on the Kobo Touch, even though the "spec" says
Returns an object that represents the current reading system. Every reading system that supports scripting in any fashion MUST provide this object.
rtmyers is offline   Reply With Quote