alvaromontoro / TourGuide

JS module that helps generate step-by-step instructions and demos in an easy way
MIT License
20 stars 4 forks source link

The spotlight is lost if user scrolls the page #3

Open alvaromontoro opened 6 years ago

alvaromontoro commented 6 years ago

SpotlighJS was designed for an unchangeable/unscrollable viewport. If the plugin is used on a regular web page and the user scrolls, the spotlight is lost. It would be nice if the spotlight never disappears from the current viewport.

dulcetti commented 6 years ago

Hi @alvaromontoro. Can I take this too? What do you think if on user start the Spotlight, the scrolling turn off, and if he exit of Spotlight, the scrolling come back?

alvaromontoro commented 6 years ago

@dulcetti Of course. I was thinking about doing something like adding overflow:hidden to the html/body and readjusting the scroll so the user didn't notice a jump when the animation started or ended... but it may be overcomplicating things. Any suggestion is welcome.