Can somebody help me with this. When I open Floating group, I should not be able to scroll the background. I have also made the floating group Fixed height but it doesn’t work.
To turn off scrolling when FG is visible, you can do the following:
- Add an ID to the page, for example: “myPage”
- Add a “Run Javascript” step to the action that is responsible for showing FG with the following JS code inside it:
savedScrollY = window.scrollY;
let x = document.getElementById("myPage");
x.style.position = "fixed";
x.style.top = -savedScrollY+"px";
This will disable scrolling on the page.
- Add a “Run Javascript” step to the action that is responsible for hiding FG with the following JS code inside it:
let x = document.getElementById("myPage");
x.style.position = "absolute";
x.style.top = "";
resetscroll();
This will enable scrolling on the page again.
Wow! It really worked… Thanks @marpas …