Page transition problem with "ghost" mouse events (Android)
Hi. I am getting problems on Android devices where mouse events from one page are being executed on the new page after a transition. I have included two simple test pages that use list views to navigate between the two pages. The hover style (.ui-btn-hover-c) which is a grey gradient is applied to the list item on the page it transitions to. Also note that I have switched off transitions as I have had many problems with them on Android. The API event documentation does state that problems like this can occur, but what can I do about it? I have tried almost everything. Also note that when you switch between the two pages sometimes it appears to work then you click on a different row and it highlights both of them.
I get this problem with my older Android 2.2 phone. It seems okay with my newer HTC phone running Jellybean. A Samsung Galxaxy running Android 4.02 is also getting this problem. The iOS devices I have tried seem fine.
Any help much appreciated. Here is the for my test pages
Page 1
- <!DOCTYPE html>
- <html>
- <head>
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" />
- <script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
- <script>
- $(document).bind("mobileinit", function(){
- $.mobile.defaultPageTransition = 'none';
- $.mobile.defaultDialogTransition = 'none';
- $.mobile.useFastClick = true;
- });
- </script>
- <script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script>
- </head>
- <body>
- <div data-role="page">
- <div data-role="content" align="center">
- <div class="content-primary">
- <ul data-role="listview" data-inset="true">
- <li><a href="Test2.jsp">Page 1 Line one</a></li>
- <li><a href="Test2.jsp">Page 1 Line Two</a></li>
- <li><a href="Test2.jsp">Page 1 Line Three</a></li>
- <li><a href="Test2.jsp">Page 1 Line Four</a></li>
- </ul>
- </div>
- </div>
- </div>
- </body>
- </html>
Page 2 is the same but transitions page to the first page
- <!DOCTYPE html>
- <html>
- <head>
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" />
- <script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
- <script>
- $(document).bind("mobileinit", function(){
- $.mobile.defaultPageTransition = 'none';
- $.mobile.defaultDialogTransition = 'none';
- $.mobile.useFastClick = true;
- });
- </script>
- <script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script>
- </head>
- <body>
- <div data-role="page">
- <div data-role="content" align="center">
- <div class="content-primary">
- <ul data-role="listview" data-inset="true">
- <li><a href="Test1.jsp">Page 2 Line one</a></li>
- <li><a href="Test1.jsp">Page 2 Line Two</a></li>
- <li><a href="Test1.jsp">Page 2 Line Three</a></li>
- <li><a href="Test1.jsp">Page 2 Line Four</a></li>
- </ul>
- </div>
- </div>
- </div>
- </body>
- </html>