scrollSpeed syntax

When a button is clicked, I would like the view to scroll down to a certain position. This is somewhat disorienting, so I would like to slow it down. I tried increasing the scrollSpeed of my scrollview but it doesn't seem to slow it down at all.

https://snippet.webix.com/ehyfz6ai

Is there something wrong with my syntax? Is there an alternative way to slow down the scrolling using the scrollTo method?

Tagged:

Comments

  • Hello,
    scrollSpeed defines the speed of the animation only.
    While webix doesn't provide a solution, you can try to use the native HTML API
    Please check: https://snippet.webix.com/ivmj4768

    It uses the next line to make datatable visible

    $$("d1").$view.scrollIntoView({ behavior:"smooth" });
    

    scrollIntoView is a native browser's API for smooth scrolling

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion