Permalink
Browse files

vmouse: more fixes for jquery 3.0

  • Loading branch information...
arschmitz committed Jun 30, 2016
1 parent 6e02375 commit fb6337ff5e9cad4c08b0e4b32a8e93f0a684426b
Showing with 5 additions and 5 deletions.
  1. +5 −5 js/vmouse.js
View
@@ -41,10 +41,11 @@
var dataPropertyName = "virtualMouseBindings",
touchTargetPropertyName = "virtualTouchID",
virtualEventNames = "vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split( " " ),
touchEventProps = "clientX clientY pageX pageY screenX screenY".split( " " ),
mouseHookProps = $.event.mouseHooks ? $.event.mouseHooks.props : [],
mouseEventProps = $.event.props ? $.event.props.concat( mouseHookProps ): mouseHookProps,
virtualEventNames = "vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split( " " ),
generalProps = ( "altKey bubbles cancelable ctrlKey currentTarget detail eventPhase " +
"metaKey relatedTarget shiftKey target timeStamp view which" ).split( " " ),
mouseEventProps = $.event.props ? $.event.props.concat( generalProps ): generalProps,
activeDocHandlers = {},
resetTimerID = 0,
startX = 0,
@@ -83,8 +84,7 @@ function createVirtualEvent( event, eventType ) {
event.type = eventType;
oe = event.originalEvent;
props = ( "altKey bubbles cancelable ctrlKey currentTarget detail eventPhase " +
"metaKey relatedTarget shiftKey target timeStamp view which" ).split( " " );
props = generalProps;
// addresses separation of $.event.props in to $.event.mouseHook.props and Issue 3280
// https://github.com/jquery/jquery-mobile/issues/3280

0 comments on commit fb6337f

Please sign in to comment.