Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to make the overlay mask fixed to an element area instead of the entire body? #479

Open
muwoo opened this issue Feb 29, 2024 · 1 comment

Comments

@muwoo
Copy link

muwoo commented Feb 29, 2024

When I use driver.js, I find that the overlay mask always covers the document.body. When I need to guide a specific area on the page, it seems like there is no good way to achieve this with driver.js.

@xionnon
Copy link

xionnon commented Mar 1, 2024

When I use driver.js, I find that the overlay mask always covers the document.body. When I need to guide a specific area on the page, it seems like there is no good way to achieve this with driver.js.

You are right.

driver.js/src/overlay.ts

Lines 110 to 114 in 0889e01

function createOverlaySvg(stage: StageDefinition): SVGSVGElement {
const windowX = window.innerWidth;
const windowY = window.innerHeight;
const svg = document.createElementNS("http://www.w3.org/2000/svg", "svg");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants