-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scrollbar doesn't update correctly when firing 'scrollTo' event #107
Comments
I noticed a similar kind of issue. lets says I have 50 elements of 20 pixels each. and my container is 100px. |
So to make it work I had to use something like : More concrete example: new SlimScrollEvent({
type: 'scrollTo',
y: Math.min(y, 24 * this.dataSource.data.length - 300),
easing: 'inOutQuint',
duration: 500,
}), |
thanks @sandorfr for solution. can you provide pull request with a fix maybe? |
It seams, that the scrollbar doesn't update correctly when using the SlimScrollEvent-Emitter with the type: 'scrollTo'. The content scrolls correctly (e.g. position y = 100) but the scrollbar stays on top. As soon as the scrollbar is moved just a little bit the content jumps back to top. Now, the content is based on the position of the scrollbar. Using the 'recalculate' event doesn't change anything.
The text was updated successfully, but these errors were encountered: