I think there is a small issue that needed to be fixed after this changes.
So my problem with new version is that after disable() than enable(), onDragStart() is triggering.
I have looked and debugged and found this:
at the end of enable function there is an update call and in update we have this new lines for fixing my issue and it is causing this issue.
if (self.autoScroll) {
recordMaxScrolls(target.parentNode);
checkAutoScrollBounds = true;
render();
}
after enable() render() is called.
render function leads to setPointerPosition function and at the end there is
if (!self.isDragging) {
self.isDragging = true;
_dispatchEvent(self, "dragstart", "onDragStart");
}
So after enable(), _dispatchEvent(self, "dragstart", "onDragStart") this is called. This is harming my system because onDragStart I am changing some flags which are used in other places and like onDragStop is not triggering also so that flags are remaining.
I don't know if this should be another topic, if so I can create.
Thanks