jquery-ui/tests/unit/resizable/helper.js
Alexander Schmitz 5850a5c755 Resizable: Style updates
Ref #14246
2015-09-11 08:29:08 -04:00

20 lines
377 B
JavaScript

define( [
"jquery",
"lib/helper"
], function( $, helper ) {
return $.extend( helper, {
drag: function( el, dx, dy ) {
// this mouseover is to work around a limitation in resizable
// TODO: fix resizable so handle doesn't require mouseover in order to be used
$( el ).simulate( "mouseover" ).simulate( "drag", {
moves: 2,
dx: dx,
dy: dy
} );
}
} );
} );