BUG: the blue outline (gjs-hovered) is not following its parent during scrolling
Question
Version: 16.27
Are you able to reproduce the bug from the demo?
[x ] Yes [ ] No
Describe the bug:
I discovered an issue with gjs-hovered, the class that handles the mouse-hover outline for elements. Sometimes the blue outline will move relative to its parent 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%;">
...
What is the expected behavior?
The blue outline should always be exactly matching its parent element, no matter if there is an overflow or scrolling.
Are you able to attach screenshots, screencasts or a live demo?
[x ] Yes (attach) [ ] No
Answers (3)
Would be nice to have this fixed, not the end of the world, but mildly annoying.
any news?
I'm closing this one as it was actually already fixed, indeed the old demo is working now properly. You might still face the issue if your editor is placed in a scrollable container, in that case, use this option please: https://github.com/artf/grapesjs/blob/dc45604962e4e6a4a075f19d5de67090bac15fa5/src/editor/config/config.js#L157-L163
Related Questions and Answers
Continue research with similar issue discussions.
Issue #4323
BUG: Performance issue while dragging component to canvas when you have 2k component on canvas
GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Google Chrome Version 101.0.4951.41 (Officia...
Issue #3515
BUG: gjs-selected Style is Hardcoded
This definition: https://github.com/artf/grapesjs/blob/88249c38577852dc3c42047356a70a12066ee6ca/src/canvas/view/FrameView.js#L303-L306 is a...
Issue #2196
[Bug] Link element selection shows no toolbar
Steps to reproduce: add Text, select a word, click on Link icon in RTE panel, select a Link. Expected behaviour: when I select Link I expec...
Issue #2419
[BUG] Absolute dragmode does not work on touch devices
Absolute dragmode (with grapesjs touch plugin) does not work on touch devices. GrapesJS version:0.15.8 Expected behavior: The user should b...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.