gantt-schedule-timeline-calendar icon indicating copy to clipboard operation
gantt-schedule-timeline-calendar copied to clipboard

Event onEnd from ItemResizing plugin triggers twice when resize from start time

Open danilolima opened this issue 4 years ago • 1 comments

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

danilolima avatar Dec 20 '20 23:12 danilolima

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 ;)

3h3c avatar Apr 15 '22 15:04 3h3c