Skip to content

Commit

Permalink
fix: tab drag (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
hstyi authored Feb 14, 2025
1 parent ab727f6 commit 9f218d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/kotlin/app/termora/MyTabbedPane.kt
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ class MyTabbedPane : FlatTabbedPane() {
override fun mousePressed(e: MouseEvent) {
val index = indexAtLocation(e.x, e.y)
if (index < 0 || !isTabClosable(index)) {
tabIndex = -1
mousePressedPoint = Point()
return
}
tabIndex = index
Expand Down

0 comments on commit 9f218d0

Please sign in to comment.