gantt-schedule-timeline-calendar
gantt-schedule-timeline-calendar copied to clipboard
Event onEnd from ItemResizing plugin triggers twice when resize from start time
Describe the bug When I resize the item from the end time the onEnd event triggers once, but triggers twice when resize from start time.
gantt-schedule-timeline-calendar version 3.6.6
I found out the problem. I think you will see the failure ;)
onPointerUp() { "resize" === this.data.state && (this.data.state = "end"), this.onLeftPointerUp(), this.onRightPointerUp(), this.onEnd(), this.updateData(), this.api.plugins.TimelinePointer.unlock("down"), this.api.plugins.TimelinePointer.unlock("move"), this.api.plugins.TimelinePointer.unlock("up") } onLeftPointerUp() { document.body.classList.remove(this.data.bodyClassLeft), this.data.enabled && this.data.leftIsMoving && (this.data.leftIsMoving = !1, this.onEnd(), this.updateData()) } onRightPointerUp() { document.body.classList.remove(this.data.bodyClassRight), this.data.enabled && this.data.rightIsMoving && (this.data.rightIsMoving = !1) }
@neuronetio it would be nice when you can fix it ;)