fixed edge case when setting draggable=false on dragend