Replies: 1 comment
-
Hey @RenanMev if (action === ACTIONS.UPDATE && lifecycle === LIFECYCLE.TOOLTIP) {
window.dispatchEvent(new Event("resize"));
} If it doesn't work like this, you add a shot setTimeout to dispatch the event or add an async function to listen to the scrolling and dispatch it afterward. You can check this comment for more information |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Good afternoon, how are you? I wanted to know if you have any plans to implement a callback when the scroll finishes, because I am facing some issues with scrolling. I manually change the steps, so I end up modifying the index a lot. As a result, when it’s scrolling, I’ve already moved to the next step and the spotlight has loaded. When scrolling, the spotlight disappears from the screen. What I could do is, once the scroll finishes, I reset the tour, and the spotlight would correct it, but that functionality is not available yet.
if (typeof onScrollEnd === "function") {
// setTimeout(() => {
// setRun(false);
// }, 1);
// setTimeout(() => {
// onScrollEnd();
// setRun(true);
// }, scrollDuration);
// }
Beta Was this translation helpful? Give feedback.
All reactions