mirror of
https://github.com/TermoraDev/termora.git
synced 2026-01-16 02:12:58 +08:00
fix: tab drag (#226)
This commit is contained in:
@@ -80,6 +80,8 @@ class MyTabbedPane : FlatTabbedPane() {
|
|||||||
override fun mousePressed(e: MouseEvent) {
|
override fun mousePressed(e: MouseEvent) {
|
||||||
val index = indexAtLocation(e.x, e.y)
|
val index = indexAtLocation(e.x, e.y)
|
||||||
if (index < 0 || !isTabClosable(index)) {
|
if (index < 0 || !isTabClosable(index)) {
|
||||||
|
tabIndex = -1
|
||||||
|
mousePressedPoint = Point()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
tabIndex = index
|
tabIndex = index
|
||||||
|
|||||||
Reference in New Issue
Block a user