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

During editing the cursor must stay in focus. #5

Open
jurjanpaul opened this issue Dec 11, 2022 · 2 comments
Open

During editing the cursor must stay in focus. #5

jurjanpaul opened this issue Dec 11, 2022 · 2 comments

Comments

@jurjanpaul
Copy link
Owner

No description provided.

@jurjanpaul jurjanpaul changed the title During editing the cursor should stay in focus. During editing the cursor must stay in focus. Dec 11, 2022
@jurjanpaul
Copy link
Owner Author

Removing scroll from parinfer-codemirror (https://github.com/jurjanpaul/parinfer-codemirror/blob/examine-scroll-issue/parinfer-codemirror.js) seems to improve the situation.

This begs the question what problem that cm.scrollElement invocation is solving in the first place... 🤔

I'm not at all keen on forking parinfer-codemirror (archived project since 2019) though...

@jurjanpaul
Copy link
Owner Author

Found that adding a very specific scrollntoView invocation with an explicit margin of 8 lines really took care of the major scrolling issue that I had on my phone. So, I'm including this tweaked version of parinfer-codemirror.js in the repo now.

Unfortunately, horizontal scroll behaviour is still problematic for longer lines.
This at least stimulates one to keep lines of code short...
But I should experiment with some margin here too. The problem remains that I have no idea whether what 'works' for me, works equally well for someone else. So, if anyone runs into this issue, it would be nice to (finally) get some feedback. :-)

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

No branches or pull requests

1 participant