kamranahmedse / driver.js

A light-weight, no-dependency, vanilla JavaScript engine to drive user's focus across the page
https://driverjs.com
MIT License
22.71k stars 1.01k forks source link

Show popup at the top of element that stretches outside window #431

Open Chessington opened 1 year ago

Chessington commented 1 year ago

Let's say I'm highlighting an element that stretches outside the window visibility. Right now, the window is scrolled to the end of the element, is there a way to prevent this from happening and showing the popup at the top of the element without scrolling?

Here's a codepen showcasing the issue.

kongweiying2 commented 10 months ago

I have this problem too. Currently, if the element the popup is created on, is larger than the screen, it will scroll to half way through the element. I would like it to scroll to the top.

georgecartridge commented 3 months ago

+1

I would also like to know if it's possible to stop driver from scrolling when the element is larger than the viewport