iphone - Jquerymobile's Tap-hold not working in opera mobile widget emulator -
i tried implementing tap-hold function of jquerymobile given in 1 of demos
<!doctype html> <html> <head> <title>jquery mobile events</title> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a1/jquery.mobile-1.0a1.min.css" /> <script src="http://code.jquery.com/jquery-1.4.3.min.js"></script> <script src="http://code.jquery.com/mobile/1.0a1/jquery.mobile-1.0a1.min.js"></script> <script type="text/javascript"> $( function() { $('body').bind( 'taphold', function( e ) { alert( 'you tapped , held!' ); e.stopimmediatepropagation(); return false; } ); $('body').bind( 'swipe', function( e ) { alert( 'you swiped!' ); e.stopimmediatepropagation(); return false; } ); } ); </script> </head> <body> <div data-role="page" id="home"> <div data-role="header"> <h1>jquery mobile events</h1> </div> <div data-role="content"> <p>try:</p> <ul> <li>tapping , holding</li> <li>swiping</li> </ul> </div> </div> </body> </html>
but swipe not working @ in opera widget emulator , tap-hold working weirdly, works when u tap twice , swipe doesn't work on hold. tried removing binding swipe function there no change.
maybe emulator not use tap event, click event. when clicked not emulate tap event.
Comments
Post a Comment