2015-04-07 14:30:07 +00:00
|
|
|
define( [
|
|
|
|
"jquery",
|
|
|
|
"lib/helper"
|
|
|
|
], function( $, helper ) {
|
2015-04-06 18:33:25 +00:00
|
|
|
|
2015-04-07 14:30:07 +00:00
|
|
|
return $.extend( helper, {
|
2012-12-09 02:27:37 +00:00
|
|
|
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", {
|
2012-12-12 08:59:11 +00:00
|
|
|
moves: 2,
|
2012-12-09 02:27:37 +00:00
|
|
|
dx: dx,
|
|
|
|
dy: dy
|
2012-11-03 20:17:16 +00:00
|
|
|
});
|
|
|
|
}
|
2015-04-07 14:30:07 +00:00
|
|
|
} );
|
2015-04-06 18:33:25 +00:00
|
|
|
|
|
|
|
} );
|