Skip to content

Commit be8e0ee

Browse files
committed
Fix that the chat can be dragged by dragging the circular widget
1 parent 732e438 commit be8e0ee

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Core/Sources/SuggestionWidget/SuggestionWidgetController.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,7 @@ extension SuggestionWidgetController: NSWindowDelegate {
584584
var mouseLocation = NSEvent.mouseLocation
585585
let windowFrame = chatWindow.frame
586586
if mouseLocation.y > windowFrame.maxY - 40,
587+
mouseLocation.y < windowFrame.maxY,
587588
mouseLocation.x > windowFrame.minX,
588589
mouseLocation.x < windowFrame.maxX
589590
{
@@ -616,6 +617,7 @@ class ChatWindow: NSWindow {
616617
let windowFrame = frame
617618
let currentLocation = event.locationInWindow
618619
if currentLocation.y > windowFrame.size.height - 40,
620+
currentLocation.y < windowFrame.size.height,
619621
currentLocation.x > 0,
620622
currentLocation.x < windowFrame.width
621623
{

0 commit comments

Comments
 (0)