2015-04-07 14:30:07 +00:00
|
|
|
define( [
|
2016-04-06 13:11:09 +00:00
|
|
|
"qunit",
|
2015-04-07 14:30:07 +00:00
|
|
|
"jquery",
|
|
|
|
"lib/helper"
|
2016-04-06 13:11:09 +00:00
|
|
|
], function( QUnit, $, helper ) {
|
2021-06-06 22:58:12 +00:00
|
|
|
"use strict";
|
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 ) {
|
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
|
2012-12-09 02:27:37 +00:00
|
|
|
// 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", {
|
2012-12-12 08:59:11 +00:00
|
|
|
moves: 2,
|
2012-12-09 02:27:37 +00:00
|
|
|
dx: dx,
|
|
|
|
dy: dy
|
2015-08-24 12:58:35 +00:00
|
|
|
} );
|
2012-11-03 20:17:16 +00:00
|
|
|
}
|
2015-04-07 14:30:07 +00:00
|
|
|
} );
|
2015-04-06 18:33:25 +00:00
|
|
|
|
|
|
|
} );
|