Skip to content

Commit 32c50f2

Browse files
committed
Improve drag and drop behavior in ChatWindow
1 parent 027959d commit 32c50f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Core/Sources/SuggestionWidget/SuggestionWidgetController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -647,8 +647,8 @@ class ChatWindow: NSWindow {
647647
let windowFrame = frame
648648
let currentLocation = event.locationInWindow
649649
if currentLocation.y > windowFrame.size.height - 40,
650-
currentLocation.x > windowFrame.minX,
651-
currentLocation.x < windowFrame.maxX
650+
currentLocation.x > 0,
651+
currentLocation.x < windowFrame.width
652652
{
653653
performDrag(with: event)
654654
}

0 commit comments

Comments
 (0)