As seen in the image. If you hover over the gray area it prevents scrolling. We're using this in an app where our blockly instance is much larger. This is confusing our clients. Is there a way we could make this blockly component behave more like normal html elements?
Try it for yourself here: https://developers.google.com/blockly
I've tried selecting all the element causing the problem.
const elements = document.getElementsByClassName("blocklyFlyout")
Then removing all event listeners from those elements
elements.forEach(old => {
const cloned = old.cloneNode(true)
old.parentNode.replaceChild(cloned, old)
})
This allows scrolling to work again but disables scrolling inside of the blockly element if it overflows.
EDIT: Partial solution. This makes scrolling work but breaks the scrolling for blockly component
const targetElement = document.documentElement;
const elements = document.getElementsByClassName("blocklyFlyout");
for (const element of elements) {
element.addEventListener(
"wheel",
function (event) {
targetElement.scrollTop += event.deltaY;
},
{ passive: true }
);
}