Skip to content
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

ScrollAnimation overrides subsequent scrollTop changes #4992

Closed
nightwing opened this issue Nov 10, 2022 · 0 comments
Closed

ScrollAnimation overrides subsequent scrollTop changes #4992

nightwing opened this issue Nov 10, 2022 · 0 comments

Comments

@nightwing
Copy link
Member

Describe the bug

call editor method that scrolls editor with animation, and then call a method that sets scroll position without an animation

Expected Behavior

editor scrolls to the position of latest call

Current Behavior

editor scrolls to the position of animated scroll

Reproduction Steps

fromValue = editor.session.getScrollTop()
editor.renderer.scrollCursorIntoView({row:400, column:1})
editor.renderer.animateScrolling(fromValue)
setTimeout(function() {
 editor.renderer.scrollCursorIntoView({row:0, column:1})
}, 2)

Possible Solution

No response

Additional Information/Context

No response

Ace Version

master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants