aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/resizable/helper.js
blob: 494c1a073853180cb4ceb5c23e40f06b19fe9a4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
		});
	}
} );

} );