Issue #3065💬 AnsweredOpened October 7, 2020by Davidvlv0 reactions

Gjs-hovered is not being removed when cursor leaves the layers

快速解答by fq-selbach

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:

Read full answer below ↓

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

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...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.