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

Changed hidden paste textarea to fixed to prevent scrolling when pasting #135

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DaveChild
Copy link

When pasting into the notebook, content is written to a hidden textarea. The paste capturing script focuses on this textarea, which causes the browser to scroll to it (on the demo, the textarea is already in view, so you don't see this problem). Changing the textarea to fixed instead of absolute keeps it in view so the browser doesn't need to scroll.

When pasting into the notebook, content is written to a hidden textarea. The paste capturing script focuses on this textarea, which causes the browser to scroll to it. On the demo, the textarea is already in view, so you don't see the change. Changing the textarea to fixed instead of absolute keeps it in view so the browser doesn't need to scroll.
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.

2 participants