In-page menu - disable scroll to anchor/jump to item without animation

Hi all,

I currently have an in-page menu linked to anchors on my page but I would like to disable the scrolling feature and instead, jump to each item without the animation. Please find my code so far below:

import wixData from ‘wix-data’;

$w.onReady(function () {

$w('#selectionTags1').onChange(() => {

    let selectedTag = $w('#selectionTags1').value;

    for (var i = 0; i < selectedTag.length - 1; i++) {
        if (selectedTag.length > 1) {
            selectedTag.shift();

        }
    }

    setTimeout(() => {
        $w('#selectionTags1').value = [];
        $w('#selectionTags1').value = selectedTag;

    }, 1)
    let filter = wixData.filter();

    if (selectedTag.length > 0) {
        filter = filter.hasSome("arraystring", selectedTag);
    }

    $w('#dataset1').setFilter(filter);

});

});

Thank you.

There’s currently no way to scrollTo() an element without the scroll animation. There is however a scrollTo that works without animations but uses x/y positions: scrollTo - Velo API Reference - Wix.com

The code shared doesn’t seem related to scrolling. Is this the correct snippet?