Issue #3065Opened October 7, 2020by Davidvlv0 reactions

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

Question

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

Answers (3)

fq-selbachNovember 9, 20200 reactions

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%;">
...
artfNovember 18, 20200 reactions

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.

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.