View Single Post
Old 07-01-2012, 08:25 PM   #1
RandoManaphy
Junior Member
RandoManaphy plays well with othersRandoManaphy plays well with othersRandoManaphy plays well with othersRandoManaphy plays well with othersRandoManaphy plays well with othersRandoManaphy plays well with othersRandoManaphy plays well with othersRandoManaphy plays well with othersRandoManaphy plays well with othersRandoManaphy plays well with othersRandoManaphy plays well with others
 
Posts: 1
Karma: 2600
Join Date: May 2012
Device: Kindle Touch
Touch gestures in WAF apps

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
RandoManaphy is offline   Reply With Quote