Skip to content

Commit

Permalink
disable view if clientX or clientY is negative
Browse files Browse the repository at this point in the history
  • Loading branch information
asiloisad committed Dec 31, 2024
1 parent a99dd97 commit c0d385f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/tabs/lib/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ module.exports = {
test: {},

drag (e) {
if (e.clientX<0 || e.clientY<0) {
this.disableView()
return
}
this.lastCoords = e
const pane = this.getPaneAt(e)
const itemView = this.getItemViewAt(e)
Expand Down

0 comments on commit c0d385f

Please sign in to comment.