Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 12-30-2018, 10:18 AM   #1
Belkaar
Junior Member
Belkaar began at the beginning.
 
Posts: 9
Karma: 32
Join Date: Nov 2011
Device: Kindle 4
Can't capture long press / hold

Hello there,

I'm working on a Smarthome Display based on Weblaunch, but I have a huge problem:

I can't get onMouseDown or onTouchStart events in javascript. If i tap shortly on a button i get the onMouseDown and onClick events, but if you press for longer, i get no events at all, not even after releasing.

Is there any way to capture those?

Because of the slow display changes, people assume you need to hold down a button until something happens :-)

- Belkaar
Belkaar is offline   Reply With Quote
Old 12-30-2018, 10:34 AM   #2
Belkaar
Junior Member
Belkaar began at the beginning.
 
Posts: 9
Karma: 32
Join Date: Nov 2011
Device: Kindle 4
Awkward :-)

Figured it out 5 minutes after posting.

I had to turn off all the gestures, including tap in /mnt/us/extensions/WebLaunch/bin/config.xml

Code:
    <kindle:gestures>
        <kindle:param name="drag" value="no"/>
        <kindle:param name="pinchzoom" value="no" properties="fire-on-zoom:1"/>
        <kindle:param name="tap" value="no"/>
        <kindle:param name="multi_tap" value="no"/>
        <kindle:param name="hold" value="no"/>
    </kindle:gestures>
Belkaar is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Word long press bug Nexutix Marvin 8 11-02-2016 11:48 AM
Barnes and Noble to hold press conference Nov 3 darrellstaley Barnes & Noble NOOK 1 10-31-2011 03:52 PM
Cannot long-press on images bsetzer Android Developer's Corner 0 02-19-2011 09:00 AM
iPhone Macworld: Apple to hold iPhone 4 Press Conference kjk Apple Devices 82 07-19-2010 07:00 AM
Unutterably Silly The How Long Can Marc Hold His Breath Poll pshrynk Lounge 113 02-28-2009 06:13 AM


All times are GMT -4. The time now is 04:44 PM.


MobileRead.com is a privately owned, operated and funded community.