fix: tab drag (#226)

This commit is contained in:
hstyi
2025-02-14 13:54:39 +08:00
committed by GitHub
parent ab727f66f4
commit 9f218d004e

View File

@@ -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