-
Notifications
You must be signed in to change notification settings - Fork 128
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
Text input field is not always scrolled to top #203
Comments
@Rad0n You took this issue on. Could you also explain how you think the PR fixes the issue? I.e. when you use too much text this may just be the origin issue: The generation takes too long and the text selection/scrolling correction is already triggered. @Rad0n So did you also test the bug as described above? Or in another ways? |
Yes it was a timing issue and now that i think of it, a promise will be even better. What I have done is increased the TOP_SCROLL_TIMEOUT so that it will always have enough time to scroll to top(which was not happening with 10 ms) I did test it with other long URLs and with "Automatically use text selected on website" on and it worked with both of them :) |
Bold statement 😜 But, if it works, it's all right… 😄
Okay, great so… 😄 |
Hahaha yeah poor choice of words :P |
@rugk any other changes you want me to make? would love to help :) #hacktober |
You may have a look at all issues tagged with "hacktoberfest" in this repo or somewhere else. (Of course, however, you can take any issue on. "help wanted" is also a good task if you want to contribute something possibly more difficult, but really useful) |
Bug description
Also discovered in #199
Steps to reproduce
Steps to reproduce the behavior:
Actual behavior:
The scroll bar is at the bottom, it's scrolled down.
Expected behavior:
Scroll bar should be at the top, i.e. it should display the beginning of the URL.
More details:
The reason that you need to test this is, that all three ways work differently in passing/getting the data to the QR code popup panel. They e.g. trigger at different times and you can expect race conditions or so…
FYI: opening via hot key is (should be) the same as via click/no difference is expected here.
System
Operation system and version: Linux/Fedora 30/GNOME
Browser and version: Firefox 69
Add-on version: 1.6
Further information
Responsible function:
offline-qr-code/src/popup/modules/UserInterface.js
Line 175 in 6e817de
For a solution, I may be fine with refactoring this (it's kinda needed) and possibly split it into it's own file (module). (together with some other text selection things there…)
The text was updated successfully, but these errors were encountered: