mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-12-07 06:14:24 +00:00
17 lines
360 B
JavaScript
17 lines
360 B
JavaScript
/*
|
|
* selectable_core.js
|
|
*/
|
|
|
|
var el;
|
|
|
|
TestHelpers.selectableDrag = function drag(dx, dy) {
|
|
var off = el.offset(), pos = { clientX: off.left, clientY: off.top };
|
|
el.simulate("mousedown", pos);
|
|
$(document).simulate("mousemove", pos);
|
|
pos.clientX += dx;
|
|
pos.clientY += dy;
|
|
$(document).simulate("mousemove", pos);
|
|
$(document).simulate("mouseup", pos);
|
|
};
|
|
|