Mark Holmquist
unread,Aug 2, 2011, 5:08:31 PM8/2/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to iScroll
Hi,
I've been trying to get iScroll to work on a small app I'm designing.
The app works like so:
1. Page loads
2. RSS feed gets loaded, displayed
2a. AdMob loads
3. iScroll takes effect, should be able to scroll
I had to use iScroll to keep the admob div stationary, as I'm sure you
all know. My problem is, iScroll won't let me scroll down. I can move
it down a little, but it always pops back to the top when I let go.
Also, when I scroll with my cursor in the admob div, it moves the
entire screen (including the admob div). This happens in the iOS
simulator, on a device, *and* in a web browser, so I imagine it's not
device-or-SDK-specific. It's probably my own fault.
I am using the jQuery plugin (it's really just a wrapper), if that
makes any difference (though I only turned to the plugin after the
normal library wouldn't work for me).
Version: iScroll Lite base on iScroll v4.1.6
RSS feed reader: jquery.zrssfeed 1.1.2
General structure of page:
<div id="appBody">
<div id="feedResults">
<!-- feed gets loaded here, by zRSSfeed -->
</div>
</div>
<div id="appAdvertisements">
<!-- admob gets loaded here, by their JS file, I don't touch this -->
</div>
Loading code:
document.addEventListener('touchmove', function (e)
{ e.preventDefault();}, false);
$(document).ready(function() {
$('#feedResults').rssfeed('<<rssfeed-url>>', {
date: false,
header: false,
limit: 40,
snippet: false
}, function() {
$('#appBody').iscroll();
});
});
Any help is greatly appreciated, thanks!