-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
[api-minor] Use a CSS transform to update the progress bar instead of changing the width (bug 1768481) #14898
Conversation
calixteman
commented
May 10, 2022
- it isn't a fix for bug 1768481 but just a tiny improvement to refresh the progress bar on the compositor thread.
First of all, given that there appeared to be a suggestion in the bug about never using the viewer-loadingBar and instead only use the existing browser loading-indicator (in the tab); is this something that's being seriously considered here? Because if we end up doing that, which based on looking through the relevant code just now might not actually be that difficult to implement, these sort of changes feels mostly moot to me. Secondly, please keep in mind that the Lines 686 to 703 in 38c8235
|
I think we should ask an opinion to some UX expert. |
I filed https://bugzilla.mozilla.org/show_bug.cgi?id=1769023 to take into consideration removing the progress bar or reducing the cases where it is shown. |
Given the second point mentioned in #14898 (comment), if we need to change the CSS used to update the loadingBar it'd probably make sense to explicitly remove support for any options in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you forget to test the indeterminate
ProgressBar, since that one no longer works :-P
(When I want to manually test that one, I usually change this line to const percent = NaN;
instead.)
To fix that, it seems that just replacing
Line 382 in 63441e8
width: 100%; |
transform: none;
is sufficient.
Finally, please remember to make the same exact changes in https://github.com/mozilla/pdf.js/tree/master/examples/mobile-viewer as well.
…e width (bug 1768481) - it isn't a fix for bug 1768481 but just a tiny improvement to refresh the progress bar on the compositor thread.
/botio-linux preview |
From: Bot.io (Linux m4)ReceivedCommand cmd_preview from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/fb4ff91178a49e2/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/fb4ff91178a49e2/output.txt Total script time: 2.59 mins Published |
Note that in practice it's pretty rare to see that one, since it only happens if a server doesn't provide a (valid) |