Skip to content

Commit

Permalink
fix: Allow resize to last visible slot
Browse files Browse the repository at this point in the history
Resolves issue with resizing an event to the end of the viewable TimeGrid

jquense#2147
  • Loading branch information
LiniovasDovydas committed Jun 16, 2022
1 parent 8e4fafa commit f26c8a7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,16 +323,14 @@ class Selection {
return this.emit('reset')
}

if (!inRoot) {
return this.emit('reset')
}

if (click && inRoot) {
return this._handleClickEvent(e)
}

// User drag-clicked in the Selectable area
if (!click) return this.emit('select', bounds)

return this.emit('reset')
}

_handleClickEvent(e) {
Expand Down

0 comments on commit f26c8a7

Please sign in to comment.