Quantcast
Channel: MobileRead Forums - Kindle Developer's Corner
Viewing all articles
Browse latest Browse all 4324

K5 Touch gestures in WAF apps

$
0
0
This is my first post, yay! I was bored, so I started some of the wafs in /var/local/waf/ (facebook, gmail) and noticed that nothing happened if you clicked on the text boxes, and that it would crash after a few moments. So I checked the draw config.xml and crossed referenced it with the one for facebook. And this was missing from the facebook one:

Code:

    <!-- App Configuration -->
    <kindle:gestures>
        <param name="drag" value="no"/>
        <param name="pinchzoom" value="no"/>
        <param name="tap" value="no"/>
        <param name="multi_tap" value="no"/>
    </kindle:gestures>

    <!-- request for persistent chrome-->
    <kindle:chrome>
        <kindle:asset key="useCustomSearchBar" value="true"/>
    </kindle:chrome>

    <!--
        features are used to control the JS API that will be available to a
        waf application.
    -->
    <feature name="http://kindle.amazon.com/apis" required="true">
        <param name="gestures" value="yes"/>
    </feature>

Insert this between the
Code:

<content src=... />
tag and the
Code:

</widget>
tag, and poof, you've got yourself an interactive waf!

This might seem kind of obvious, but I was bored :P

Viewing all articles
Browse latest Browse all 4324

Trending Articles