-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android: click event issue #96
Comments
In addition, when including iscroll.js only, click event are working normally, the issue come when including jquery.mobile.iscrollview.js. Also, setting bindIscrollUsingJqueryEvents to true solve the issue but the scrolling is not working (I saw in the doc that this setting is experimental ...) |
Hmm, don't know why there would be a difference between The reason I don't use In jQuery 1.9.1, "Deprecated" means it will be removed in some future version. So, when I do intend to add a PhoneGap (as well as Rhodes) demo in the near future. At that time, I'll take a look at this. |
Hi, Thank you for your response. Yo uare right there is not difference from bind to on. This issue is in fact due to the Android's default browser which is used by Phonegap. Chrome in Android acts normally (I didn't test in other browser). This issue is related to iscroll.js and I have raised an issue and also propose a workaround. It make iscroll depending of jquery which is not acceptable for iscroll team (I totally agree) but can be interesting intersting in your case (as you script target jquery mobile + iscroll user) or for other users: Thanks a lot Best Regards Florent |
Has anyone tried v5 and looked if the issue is fixed there? Thanks for your contributions. |
UPDATE I'm using this fix to avoid the double click behavior on android. Should be loaded before iscroll.js //-------------------------------------------------------------------------------------------------------------- last_click_time = new Date().getTime(); |
@Hexodus thanks for the code, it works like a charm! ;) |
@tripexito Please read my up update and the warning about this fix which started to cause much trouble in newer browsers. |
Hello,
Thanks a lot for this widget it is very usefull and working great, except for one thing.
I'm using it on Android (official relaese on Google Nexus 4).
The issue concern the click event which is fired twice when javascript scripts related to the widget are loaded (no issue when I remove them).
I have made a little change to the exemple html file you provide with your library:
<title>iscrollview Demo</title>When using this file with phonegap on Android, cliking on the collapsible listview rise two event and make the listview expands and collapses immediatly.
This list act normally when removing iscroll related javascript.
My tests revealed that using bind() cause two click event to be fired while jquery.on() give a normal single/unique click event. Jquery docs warn that bind() is deprecated since Jquery 1.7. Hope this give help on the present bug.
Thanks a lot for your help
Florent
The text was updated successfully, but these errors were encountered: