jquery-ui/tests/unit/resizable/helper.js

21 lines
394 B
JavaScript
Raw Normal View History

define( [
2016-04-06 13:11:09 +00:00
"qunit",
"jquery",
"lib/helper"
2016-04-06 13:11:09 +00:00
], function( QUnit, $, helper ) {
return $.extend( helper, {
drag: function( el, dx, dy ) {
2015-08-24 12:58:35 +00:00
2016-04-06 13:11:09 +00:00
// This mouseover is to work around a limitation in resizable
// TODO: fix resizable so handle doesn't require mouseover in order to be used
2015-08-24 12:58:35 +00:00
$( el ).simulate( "mouseover" ).simulate( "drag", {
moves: 2,
dx: dx,
dy: dy
2015-08-24 12:58:35 +00:00
} );
}
} );
} );