Skip to content

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

Open
DaveChild wants to merge 1 commit intoraphaelcruzeiro:masterfrom
DaveChild:master
Open

Changed hidden paste textarea to fixed to prevent scrolling when pasting#135
DaveChild wants to merge 1 commit intoraphaelcruzeiro:masterfrom
DaveChild:master

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