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

BUG: gjs-hovered is not being removed when cursor leaves the layers #3065

Closed
Davidvlv opened this issue Oct 7, 2020 · 3 comments
Closed

Comments

@Davidvlv
Copy link

Davidvlv commented Oct 7, 2020

Version:
0.16.22

Are you able to reproduce the bug from the demo?

[x] Yes
[ ] No

What is the expected behavior?

  1. Hover over body in the layers - body element has the class gjs-hovered and has a blue outline
  2. Move mouse up and out of the layers

body element should remove gjs-hovered and no longer have a blue outline

What is the current behavior?

Body element keeps the gjs-hovered class and remains hovered

Are you able to attach screenshots, screencasts or a live demo?

[x] Yes (attach)
grapesjs hover doesn't go away.zip

@fq-selbach
Copy link

fq-selbach commented Nov 9, 2020

I discovered another issue with gjs-hovered. Sometimes the blue outline will move during scrolling.
Check out this JsFiddle (and scroll with mouse-wheel): https://jsfiddle.net/vb7r1zns/

It seems to happen only when the HTML code starts with another full width/height DIV:

<div id="gjs">
<div style="width: 100%; height: 100%;">
...

@artf artf removed the help wanted label Nov 18, 2020
@artf
Copy link
Member

artf commented Nov 18, 2020

Thanks @Davidvlv for the report. The fix will be available in the next release.

@fq-selbach your issue is a bit different, that happens with scrollable inner elements.

@artf artf closed this as completed in e08b795 Nov 19, 2020
@fq-selbach
Copy link

Since you closed this I've created a new issue for the related problem: #3152

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants