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

Prevent DOM scrolling on kill shortcut #23

Closed
wants to merge 1 commit into from

Conversation

AdamFrey
Copy link
Contributor

I noticed when using clojure-mode on a tall page, whenever I tried the kill command (Ctrl-k) the kill would happen correctly but my page would get scrolled down to the bottom. This was because my browser was focusing on the temporary textarea element created in the copy-to-clipboard! function. Adding :preventScroll true fixed the problem for me.

I noticed when implementing clojure-mode on a tall page, whenever I
tried the kill command (Ctrl-k) the kill would happen correctly but my
page would get scrolled down to the bottom. This was because my browser
was focusing on the temporary textarea element created in the
copy-to-clipboard! function. Adding :preventScroll true fixed the
problem for me.
@zampino zampino mentioned this pull request Jul 6, 2022
@zampino zampino closed this in #28 Jul 6, 2022
zampino added a commit that referenced this pull request Jul 6, 2022
Co-authored-by: Adam Frey <adam@adamfrey.me>
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

Successfully merging this pull request may close these issues.

1 participant