I am using iScroll
v4 in Phonegap 2.1.0 + IOS. I have a two iscroll in two different pages.
First iscroll
function locationload() {
locationScroll = new iScroll('locationWrapper', {
vScrollbar: false,
hScrollbar: false,
hScroll: false
});
}
Second iscroll
function preferenceload() {
preferencesScroll = new iScroll('preferencesWrapper', {
vScrollbar: false,
hScrollbar: false,
hScroll: false
});
}
In first page iScroll
worked fine. Second page iScroll
also worked fine. but when i click a button in second page, button click event fire multiple times. If i remove the iScroll in second page, button click event works fine. I am using $.mobile.changePage("#Page2", null, true, true); to navigate to Page2.
I can't find any solution anywhere so I am hoping someone here can throw me some ideas.
Thanks
$('element').unbind("click").click( function() { //click code });
– Brame