Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Commit

Permalink
Avoid flashes of bad bg on pane resize
Browse files Browse the repository at this point in the history
  • Loading branch information
pfrazee committed Jul 9, 2020
1 parent cc3273d commit f3d6530
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/fg/shell-window/panes.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,20 +100,23 @@ class ShellWindowPanes extends LitElement {
e.preventDefault()
e.stopPropagation()
this.isResizing = true
this.requestUpdate()
bg.views.setPaneResizeModeEnabled(true, pane.id, edge)
}

onMouseMove (e) {
if (this.isResizing && !e.buttons) {
bg.views.setPaneResizeModeEnabled(false)
this.isResizing = false
this.requestUpdate()
}
}

onMouseUp (e) {
if (this.isResizing) {
bg.views.setPaneResizeModeEnabled(false)
this.isResizing = false
this.requestUpdate()
}
}
}
Expand Down

0 comments on commit f3d6530

Please sign in to comment.