mirror of
https://github.com/TermoraDev/termora.git
synced 2026-01-15 18:02:58 +08:00
fix: tab drag (#226)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user