Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix borderless drag issues and add debug overlay to better test issues about draging area #4300

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

Simon-Laux
Copy link
Member

@Simon-Laux Simon-Laux commented Nov 1, 2024

Bildschirmfoto 2024-11-01 um 01 59 15 add `exp.showDragAreas()` development api to make drag areas visible.

red is drag, green is no-drag.
How to use: go into electron dev tools, execute exp.showDragAreas() to toggle the overlay which makes drag areas visible.
This is a useful tool to make the issues with it more tangible.

Fix some of the bugs:

  • make dialogs no-drag
  • add input and button elements in case we missed cases, they should always be clickable
  • make background image on "no account selected"- and welcome screen a drag area
  • don't make dialog headers drag areas
  • remove unused z-index css code from context menu
  • make context menu not dragable

todo? or make new issue:

  • Fullscreen media view -> where can I drag that?

closes #4018
closes #3926

@Simon-Laux Simon-Laux added bug Something isn't working OS: Mac Related to MacOS labels Nov 1, 2024
Copy link
Collaborator

@WofWca WofWca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have checked that the added DragRegionOverlay is not relevant in production. But it would also be nice to not include its code in the production build.

As to essence of this MR: I haven't checked it thoroughly, because I'm not on Mac.
But in general not so many lines have been changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working OS: Mac Related to MacOS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mac: unclear window dragging areas message details window bugs
2 participants