Bookmarks & ScrollSpy

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
User avatar
AliGW
 
 
Posts: 338
Joined: Thu Dec 19, 2024 3:41 pm

Bookmarks & ScrollSpy

Post by AliGW »

I am experimenting with bookmarks in a navigation menu.

I have an anchor top left on my page connected to the HOME button. Other buttons (e.g. ABOUT) are linked to layout grids further down the page. I have ScrollSpy enabled.

By default, HOME is highlighted in my menu. I click on ABOUT.

Expected: ABOUT will now be highlighted and the page will scroll to the ABOUT layout grid, leaving it at the top of the viewport, below my navigation menu.
Observed: ABOUT is highlighted on the menu bar as expected, but the layout grid appears at the bottom of the viewport.

I now click on HOME.

Expected: HOME will now be highlighted and the page will scroll to the anchor at the top of the viewport.
Observed: ABOUT remains highlighted on the menu bar instead of HOME, and the page scrolls back to the top of the viewport, as expected.

This is more about observations at the moment, so I won't provide a demo file. I just want to understand how these things are meant to work.
Ali
Retired, but still loving to learn & very busy.
https://alisongwright.me.uk
Novice with WWB, but was an avid user of Serif WebPlus before.
Fairly expert at Microsoft Excel (but not VBA) & Affinity by Canva (for page layout).
User avatar
Pablo
 
Posts: 24421
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Bookmarks & ScrollSpy

Post by Pablo »

Scrollspy is a standard Bootstrap feature (https://getbootstrap.com/docs/5.3/components/scrollspy/). So, I have no control over the exact behavior.
But I also have noticed that is sometimes can be a little bit tricky with the placement of anchors (bookmark).

In my demo it seems to work correct:
https://www.wysiwygwebbuilder.com/suppo ... _demo.html
User avatar
AliGW
 
 
Posts: 338
Joined: Thu Dec 19, 2024 3:41 pm

Re: Bookmarks & ScrollSpy

Post by AliGW »

Thanks, Pablo - yes, it does seem a bit glitchy! It seems to work for me if the bookmark I am scrolling back to is far enough up the page, in other words, as long as the two bookmarks are not visible at the same time in the viewport. I may well be able to rig it so that this happens, but it doesn't seem quite right. In principle, it's a nice feature, though. Thank you - I think I can work round its limitations.
Ali
Retired, but still loving to learn & very busy.
https://alisongwright.me.uk
Novice with WWB, but was an avid user of Serif WebPlus before.
Fairly expert at Microsoft Excel (but not VBA) & Affinity by Canva (for page layout).
Post Reply