mirror of
https://github.com/TermoraDev/termora.git
synced 2026-01-16 02:12:58 +08:00
fix: drag and drop cancel
This commit is contained in:
@@ -136,7 +136,8 @@ class MyTabbedPane : FlatTabbedPane() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
val c = getTopMostWindowUnderMouse()
|
// 如果是取消,那么不需要移动到其它窗口
|
||||||
|
val c = if (cancelled) null else getTopMostWindowUnderMouse()
|
||||||
if (c != owner && c is TermoraFrame) {
|
if (c != owner && c is TermoraFrame) {
|
||||||
dragToAnotherWindow(c)
|
dragToAnotherWindow(c)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user