jquery draggable throws error when 'mouseup' is triggered
- by Moustard
If you build a simple dragger:
$(document).ready(
function()
{
$('#tomove').draggable(
{
axis: 'x',
drag: function(event, ui)
{
mouseUp();
}
});
}
);
And you try to stop it programmatically:
function mouseUp()
{
if($('#tomove').offset().left 400)
{
$('#tomove').trigger('mouseup');
}
}
You will get this message in error console:
this.helper is null
Is there any way to fix this?
Thanks for your help.