var
rkeyEvent = /^key/,
- rmouseEvent = /^(?:mouse|pointer|contextmenu)|click/,
+ rmouseEvent = /^(?:mouse|pointer|contextmenu|drag)|click/,
rfocusMorph = /^(?:focusinfocus|focusoutblur)$/,
rtypenamespace = /^([^.]*)(?:\.(.+)|)/;
jQuery.event.fixHooks.click = saved;
});
+test( "drag events copy over mouse related event properties (gh-1925)", function() {
+ expect( 2 );
+
+ var $fixture = jQuery( "<div id='drag-fixture'></div>" ).appendTo( "body" );
+
+ $fixture.on( "dragmove", function( evt ) {
+ ok( "pageX" in evt, "checking for pageX property" );
+ ok( "pageY" in evt, "checking for pageY property" );
+ });
+
+ fireNative( $fixture[ 0 ], "dragmove" );
+ $fixture.unbind( "dragmove" ).remove();
+});
+
test( "focusin using non-element targets", function() {
expect( 2 );