BUG: CanvasView.clearOff not called when parent element is scrolled
Question
v0.16.18 (also tested v0.16.22)
Are you able to reproduce the bug from the demo?
[X] Yes [ ] No
What is the expected behavior? grapesjs should behave correctly inside a scrolling element
Describe the bug detailed When grapesjs run within a scrolling parent element (except for window), the canvas does not clear it's offset cache when the parent element is scrolled. This causes the highlighting boxes and other canvas effects to be displayed incorrectly.
What is the current behavior? Anything written to the canvas is misaligned when a parent element is scrolled. This can be 'fixed' by calling CanvasView.clearOff().
Are you able to attach screenshots, screencasts or a live demo?
[X] Yes (attach) [ ] No
https://codesandbox.io/s/pensive-golick-gjsmi
Steps to reproduce:
- Hover over the canvas
- Scroll down/right
- Hover over the canvas again
Answers (2)
Thanks for the report @metatick are you able to confirm if it's the same issue as #2722? In that case, this should be closed (but might worth reporting the same codesandbox).
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #3594
BUG: Hover on component when parent of editor scrolls, show wrong positioning
Version: 0.17.19 Are you able to reproduce the bug from the demo? No, because its full screen and there is no parent container scroll. What...
Issue #3045
BUG: Problem importing CSS and module in nodejs es6
Version: 0.16.22 Are you able to reproduce the bug from the demo? [x] Yes [ ] No What is the expected behavior? To import grapejs css and m...
Issue #3048
[BUG]: TypeError: Cannot read property 'get' of undefined
Version: 0.16.22Are you able to reproduce the bug from the demo? [x] Yes [ ] NoWhat is the expected behavior? no errors in the console.Desc...
Issue #3131
BUG: Paste as plain text into Text component adds <font /> wrapper to pasted text
Version: 0.16.27 Are you able to reproduce the bug from the demo? [] Yes [X] No What is the expected behavior? Paste as plain text (text no...
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.