Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit fb6337f

Browse files
committed
vmouse: more fixes for jquery 3.0
1 parent 6e02375 commit fb6337f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

js/vmouse.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,11 @@
4141

4242
var dataPropertyName = "virtualMouseBindings",
4343
touchTargetPropertyName = "virtualTouchID",
44-
virtualEventNames = "vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split( " " ),
4544
touchEventProps = "clientX clientY pageX pageY screenX screenY".split( " " ),
46-
mouseHookProps = $.event.mouseHooks ? $.event.mouseHooks.props : [],
47-
mouseEventProps = $.event.props ? $.event.props.concat( mouseHookProps ): mouseHookProps,
45+
virtualEventNames = "vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split( " " ),
46+
generalProps = ( "altKey bubbles cancelable ctrlKey currentTarget detail eventPhase " +
47+
"metaKey relatedTarget shiftKey target timeStamp view which" ).split( " " ),
48+
mouseEventProps = $.event.props ? $.event.props.concat( generalProps ): generalProps,
4849
activeDocHandlers = {},
4950
resetTimerID = 0,
5051
startX = 0,
@@ -83,8 +84,7 @@ function createVirtualEvent( event, eventType ) {
8384
event.type = eventType;
8485

8586
oe = event.originalEvent;
86-
props = ( "altKey bubbles cancelable ctrlKey currentTarget detail eventPhase " +
87-
"metaKey relatedTarget shiftKey target timeStamp view which" ).split( " " );
87+
props = generalProps;
8888

8989
// addresses separation of $.event.props in to $.event.mouseHook.props and Issue 3280
9090
// https://github.com/jquery/jquery-mobile/issues/3280

0 commit comments

Comments
 (0)