Skip to content

Commit

Permalink
Fix ColorWell receiving events from other windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanbaird committed Dec 17, 2023
1 parent 3433919 commit fa23149
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ struct ColorWellRepresentable: NSViewRepresentable {
let locationInWindow = event.locationInWindow
guard
let colorWell,
event.window === colorWell.window,
colorWell.frameConvertedToWindow.contains(locationInWindow),
let segment = colorWell.segment(at: locationInWindow)
else {
Expand Down

0 comments on commit fa23149

Please sign in to comment.