Windows 8 & jQuery Mobile
Hi all,
I have a MobileFirst ( Worklight ) project that is available on Android, iOS and as mobile web site.
Now I'm trying to make a Windows 8 version but I'm facing an exception with jQuery Mobile ( 1.4.5 ) when I try to tap on a button that change the page.
Seems that in "jquery.mobile-1.4.5.js" in the "handleTouchEnd" function the value of "getNativeEvent(event).changedTouches" [line 16] is undefined
- function handleTouchEnd( event ) {
- if ( blockTouchTriggers ) {
- return;
- }
- disableTouchBindings();
- var flags = getVirtualBindingFlags( event.target ),
- ve, t;
- triggerVirtualEvent( "vmouseup", event, flags );
- if ( !didScroll ) {
- ve = triggerVirtualEvent( "vclick", event, flags );
- if ( ve && ve.isDefaultPrevented() ) {
- // The target of the mouse events that follow the touchend
- // event don't necessarily match the target used during the
- // touch. This means we need to rely on coordinates for blocking
- // any click that is generated.
- t = getNativeEvent(event).changedTouches[0];
- clickBlockList.push({
- touchID: lastTouchID,
- x: t.clientX,
- y: t.clientY
- });
- // Prevent any mouse events that follow from triggering
- // virtual event notifications.
- blockMouseTriggers = true;
- }
- }
- triggerVirtualEvent( "vmouseout", event, flags);
- didScroll = false;
- startResetTimer();
- }
Any help will be appreciated.
Thanks.