Highlight spotlight sometimes is displayed in improper position (scroll related)
See original GitHub issueExpected behavior
The highlight overlay should be placed normally
Actual behavior
In some cases if I use scrollToFirstStep the highlight overlay (please note: not the overlay of the first step! Weird…) is placed at the wrong position.
See image below:

The highlight overlay should be placed on the plus icon (note that the Floater is at the right position). All is working perfectly when i put scrollToFirstStep={false}.
Steps to reproduce the problem
That’s the sad part… I tried to reproduce with same React and Joyride versions at https://codesandbox.io/s/q7oopyqwkq with no luck. I’m not able to find what is going on there.
If you have any suggestion helping debug this issue let me know, I understand maybe I’m able to provide enough information, so feel free to close the issue if it’s not enough for an idea from your side.
React version
15.6.2
React-Joyride version
2.0.0-11
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:29 (9 by maintainers)
Top Related StackOverflow Question
@keul Damn it. I just removed the spotlight for now. Great plugin but has this issue which is quite harmful.
2.0.0-rc.1adds a dirty fix for unused scroll parents with overflow that should handle most cases. If you still are having problems, let me know