preventing editor from scrolling when a key is pressed #5092
Unanswered
Raj-divine
asked this question in
Q&A
Replies: 1 comment
-
Editor's implementation is at Line 1223 in a981972 If you could give us an example page where this issue can be reproduced, we could fix the bug which would save you and other users of ace lots of time. Also it is worth to check that you are calling editor.resize() after changing its size.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone, I want to prevent the default behavior of the editor where if the cursor is not in view and you press a key it scrolls to the position of the cursor for some reason this is causing the text above the cursor to disappear and the cursor's behavior also changes instead of being on the line I clicked it jumps to some line above it
Because of these two reasons, I want to implement my own logic for scrolling and stop the editor's implementation.
I want to know where the logic for this scrolling is in the ace.js file so that I can remove it, or how can I prevent this behavior by any other method
thanks
Beta Was this translation helpful? Give feedback.
All reactions