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

20 lines
377 B
JavaScript
Raw Normal View History

define( [
"jquery",
"lib/helper"
], function( $, helper ) {
return $.extend( helper, {
drag: function( el, dx, dy ) {
2015-08-24 12:58:35 +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
} );
}
} );
} );