Allow to adjust the scrolling for some steps #106
Replies: 4 comments
-
Does that happen on a mobile device where you have limited horizontal space? To solve the second issue, you should try setting Anyway, I don't have any plans to implement this functionality right now but feel free to create a PR and I'll take a look at it ASAP if you really need it. EDIT: since this library is using |
Beta Was this translation helpful? Give feedback.
-
A couple more thoughts on this topic:
.widget-tour-anchor {
position: absolute;
top: 0;
left: 0;
right: 0;
height: 50%;
} |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot for all these ideas. The first issue indeed happens on a mobile device. Your idea of a Regarding the second issue, Thanks again, and I will definitely check the new features and improvements when upgrading the package ;-) |
Beta Was this translation helpful? Give feedback.
-
The idea would be to have a new property to tell the tour that, "for this step, the scroll should continue for (or stop before) X units".
For example "addCustomScroll: 10px" or "addCustomScroll: -2em". The first one would make the scroll 10px longer than the expected scroll, the second one would make the scroll stop 2em before the end.
Two examples of problems that this could help solve :
If the height of the element to which the anchor is attached is too great, then the page scrolls until the top of the anchored element is aligned with the top of the visible part of the screen. The popup containing the title + description of the step is then outside the visible part of the page:
If I have a "sticky header", and displaying a certain step scrolls the page up, the target element may be behind the header, like this:
instead of:
I'm not sure if this is the best solution, or if I'm taking the problem the right way, but I haven't found a solution for these kinds of UI problems yet.
If anyone have an idea on how to solve either of these, that would be great.
Beta Was this translation helpful? Give feedback.
All reactions