Note that there are some explanatory texts on larger screens.

plurals
  1. POiScroll keeps scrolling back up (Phonegap)
    primarykey
    data
    text
    <p>Program: Eclipse (Phonegap)</p> <p>Phone: HTC Desire (2.2.2)</p> <p>I've been playing around with the iscroll plugin for some time now but it seems i can't get it to work. When i test it in both the android emulator and my phone it keeps scrolling back to the the top. Also the LogCat gives the following line:</p> <p>"Miss a drag as we are waiting for webcore's response for touch down"</p> <p>Javascript:</p> <pre><code>&lt;script type="text/javascript"&gt; var theScroll; function scroll() { theScroll = new iScroll('scroll-content', { snap:true, momentum:false, hScrollbar:false, vScrollbar:false}); setTimeout(function () { theScroll.refresh() }, 0); } document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false); document.addEventListener('DOMContentLoaded', scroll, false); &lt;/script&gt; </code></pre> <p>HTML:</p> <pre><code> &lt;div id="wrapper"&gt; &lt;div id="main-content"&gt; &lt;div id="pages"&gt; &lt;div id="map" class="current"&gt; &lt;/div&gt; &lt;div id="camera"&gt; &lt;button class="camera-control" onclick="capturePhoto();"&gt;Capture Photo&lt;/button&gt; &lt;div style="text-align:center; margin:20px 0 0 0;"&gt; &lt;img id="cameraPic" src="" style="width:50%; height: 50%;"/&gt; &lt;/div&gt; &lt;/div&gt; &lt;div id="buzz"&gt; &lt;div id="scroll-content"&gt; &lt;ul id="your-tweets"&gt;&lt;/ul&gt; &lt;/div&gt; &lt;/div&gt; &lt;div id="info"&gt; &lt;p&gt;Informatie Evident&lt;/p&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>I'm populating the list with tweets called in with JSON. Hope somebodey can help!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload