ExploreTrendingAnalytics
Nostr Archives
ExploreTrendingAnalytics
Frederik Handberg9d ago
Fixed ✅ Next task is to fix the sidebar overlay closing when using the color selector overlay. It happens when moving the cursor to the color selector overlay, because then the cursor is not hovering the sidebar overlay, which then causes it to close.
💬 1 replies

Thread context

Root: e030e3d70e38…

Replying to: 15c9a4cb5024…

Replies (1)

Frederik Handberg9d ago
I tried using `.onContinuousHover`, but didn't work when just clicking outside the color selector overlay without moving the cursor. You must move the cursor before `.onContinuousHover` fires its `active` case. So this caused the sidebar overlay to just close... Therefore I opted for an AppKit solution instead using `mouseLocationOutsideOfEventStream`. That worked! https://developer.apple.com/documentation/appkit/nswindow…
0000 sats