mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-12-07 06:14:24 +00:00
15 lines
446 B
JavaScript
15 lines
446 B
JavaScript
|
TestHelpers.resizable = {
|
||
|
drag: function(el, dx, dy, complete) {
|
||
|
|
||
|
// speed = sync -> Drag syncrhonously.
|
||
|
// speed = fast|slow -> Drag asyncrhonously - animated.
|
||
|
|
||
|
//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");
|
||
|
|
||
|
return $(el).simulate("drag", {
|
||
|
dx: dx||0, dy: dy||0, speed: 'sync', complete: complete
|
||
|
});
|
||
|
}
|
||
|
};
|