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

Mouse hover state is evaluated outside the container of elements in the Clay Debug Tools #58

Open
rbeesley opened this issue Dec 19, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@rbeesley
Copy link

rbeesley commented Dec 19, 2024

  1. Open the Clay - UI Layout Library website and enable Clay Debug Tools by pressing 'd.'
  2. To make the issue more noticeable, scroll the debug view so that "LandingPage1Desktop" is the element at the top of the view.
  3. Move the mouse cursor down so that it moves into the Layout Config section.

Bug:
Elements in the viewport will be highlighted, and they are positioned in their relative positions as if the Layout Config section wasn't being rendered. If you click on one of the elements effectively behind Layout Config, the selected element will change.

Expected:
The hover state tracking would be limited to just the top section of the debug view and the Layout Config view would take priority when it is the view container under the mouse cursor. This means that mouse events, like mouse click, should be trapped by Layout Config.

Note:
There seems to be some slight difference in behavior when the Native HTML Renderer or the Canvas Renderer is used.

@nicbarker
Copy link
Owner

Hello, and thanks for opening this issue, I'm going to get this fixed up for 0.13 before it ships 👍

@nicbarker nicbarker added the bug Something isn't working label Dec 20, 2024
@nicbarker nicbarker self-assigned this Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants