Hello guys.
My Draggable object:
Draggable.create(document.getElementById('el'), {
minimumMovement: 50,
type: 'y',
onDragStart: function()
{
this.minimumMovement = 1;
this.type = 'x,y';
},
onDragEnd: function()
{
this.minimumMovement = 50;
this.type = 'y';
}
});
I have default minimumMovement and type properties. When Drag starts I want to change this properties and when drag ends I want to set this properties to the default values. But It doesn't works.
Can you help?