hopscotch
hopscotch copied to clipboard
Horizontal window scrolling if needed.
Issue
The 'adjustWindowScroll' only scrolls in the vertical direction!
The code was not taking X position of window and bubble into account to scroll in the horizontal direction. This was causing issues with the tour where the element is not in the view and horizontal scrolling was needed.
Solution
This patch modify's 'adjustWindowScroll' function to check if scrolling in the X direction is also needed or not and performs the scrolling animation accordingly.
Signed-off-by: Avadh Patel [email protected]