Window scroll bar

Hi,
I ran into a bug when using Window.
When I scroll the window by animation, the next time I scroll with the mouse, the scrollBar jumps back and is not in the position relative to where we scrolled.
You can see it in the following code:

const w = new Window({ scrollBarDrag: true, padding: 20 }).center();
const t = new Tile(new Circle(20, red), 4, 20, 20, 20);
w.add(t);

setTimeout(() => {
    w.animate({ props: { scrollY: -200 }, time: 0.3 });
}, 1000);

It only happens when scrolling with the mouse wheel and not when dragging
Tanks,

Hi Hadas - welcome to the ZIM Forum!

Which version of ZIM are you using and on which device are you testing? When we try with ZIM 017 on a computer, it seems to work as expected.

Note, also, that ZIM has interval() and timeout() which has some nice extra features and keeps time in seconds:

timeout(1, ()=>{w.animate({scrollY:-200}, .3)});