hopscotch icon indicating copy to clipboard operation
hopscotch copied to clipboard

Horizontal window scrolling if needed.

Open avadhpatel opened this issue 7 years ago • 0 comments

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]

avadhpatel avatar Jan 30 '18 02:01 avadhpatel