steve228uk / YouTube-Music

:musical_note: A Mac app wrapper for music.youtube.com
https://ytmusic.app
MIT License
2.78k stars 203 forks source link

revert draggable area back to 20px height #162

Closed atom2ueki closed 2 years ago

atom2ueki commented 2 years ago

161

@jscheel @TimOliver

before found any solution for the hittest priority in-between WKWebview & NSView, temporary revert the code. the window draggable area will reduce to 20px from top (red area) rather than 64px (amber red area)

Screenshot 2022-04-23 at 1 57 56 AM
TimOliver commented 2 years ago

Looks good. Thanks for that Tony!

Yeah, I'm not too sure how easy this will be to implement properly. Somehow we need to communicate to the WKWebView to let us know that we want to drag the window, only when the user isn't interacting with something in the DOM.

I'm sure it's doable; it just needs some more R&D. :)