-
Notifications
You must be signed in to change notification settings - Fork 130
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
Window scroll position jumps wildly when typing into bottom of long body of text #114
Comments
Related upstream but in Woofmark? bevacqua/woofmark#26 |
Do you have to resize the the textarea? ..which seems pretty decent. (My apologies for the poor quality of the gif, you can also view the result in the video present in the zip folder below) |
I think it's just trying to emulate the behavior of the rich text mode... see how it's different there? But maybe if we're seeing bad behavior here we should just disable it for now and ensure it's "pretty tall" ... what do you think? |
Oh I see.. |
That'd be super. Can you think of a good way forward? Thanks!
|
+1ing this issue :) as it makes writing intricate notes frustrating. |
Hi! I'm also experiencing this. Whenever i do a key command like |
@ebarry on clicking on the bold button |
Wow that is great to hear. Can i ask if you tested with several hundred lines of text that caused the entry box to be greatly expanded, like as much as https://publiclab.org/notes/liz/04-24-2018/evaluation-listen4good-round-two-results ? |
I tried with the link provided by you but the behaviour is normal in case of bold button and ⌘b |
wow ok! Time to switch to Ubuntu!!! I will try to better document this for other browsers |
If you can offer a sample text and step-by-step workflow, we can call in
other people to try it out and report back!
…On Tue, Apr 24, 2018 at 5:13 PM, Liz Barry ***@***.***> wrote:
wow ok! Time to switch to Ubuntu!!! I will try to better document this for
other browsers
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#114 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJ2cjuX5_lXoJqL5zPCfSB3h6nvhKks5tr5VvgaJpZM4Qn459>
.
|
Aha! new information to report: in Chrome, when editing a large amount of text, and with a cursor position "below the fold" (somewhere lower than what is shown upon first load of the Editor interface) ---> pressing EITHER the shift key OR the command key (⌘ on mac) causes the page to "move" all the way down to the bottom of the footer, past even the lower boundary of the text box. Use this text file for testing (it's the entire content in markdown for https://publiclab.org/notes/liz/04-24-2018/evaluation-listen4good-round-two-results): |
I think we could try to reproduce this by:
|
We can also try to just disable changing |
@publiclab/soc if anyone likes JavaScript and is looking for a small side project, this one is pretty frustrating if you've ever written a long post on PublicLab.org! Any help appreciated. 😅 |
We also use the npm module PublicLab.Editor/src/modules/PublicLab.RichTextModule.js Lines 131 to 138 in e74e97e
Here are some others we might try: |
I think we have to figure out if the |
This is such a funny bug! While editing a long research note, even pressing |
I disabled |
Trying https://www.npmjs.com/package/autogrow now |
I've attempted a fix by removing the autogrow feature completely, as suggested by @kunal-mohta. I've commented it out with a note as to why. Tests running... |
Merging and publishing |
oh wow - SO EXCITED!
…--
+1 336-269-1539 / @lizbarry <http://twitter.com/lizbarry> / lizbarry.net
On Tue, Aug 7, 2018 at 6:42 PM, Jeffrey Warren ***@***.***> wrote:
Merging and publishing
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#114 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAJ2n64-9GLtFhejfkxK_Hlln6vPZaoMks5uOhfSgaJpZM4Qn459>
.
|
In Markdown mode, if you go to https://publiclab.github.io/PublicLab.Editor/examples/ and enter a few hundred lines of text -- just paste in a lot -- then type near the bottom, the scroll position starts to jump around, making it very hard to enter text.
I think this may have to do with the calculation of
scrollTop
on this line:PublicLab.Editor/src/modules/PublicLab.RichTextModule.js
Line 168 in e74e97e
scrollTop
also appears on these lines:https://github.com/publiclab/PublicLab.Editor/search?utf8=%E2%9C%93&q=scroll&type=
Perhaps we're miscalculating, or maybe we shouldn't try to do this at all? We could test this by manually running setting
document.body.scrollTop
and/or by insertingconsole.log
statements by these probable lines, to check when they're being set and by how much.This needs some exploration to figure out exactly what's causing this!
The text was updated successfully, but these errors were encountered: