-
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
[Editor] Avoid to darken the current editor when opening the alt-text dialog #17002
Conversation
f894519
to
39c2753
Compare
39c2753
to
790df59
Compare
/botio-linux preview |
From: Bot.io (Linux m4)ReceivedCommand cmd_preview from @calixteman received. Current queue size: 0 Live output at: http://54.241.84.105:8877/4cca63fead500e7/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/4cca63fead500e7/output.txt Total script time: 1.49 mins Published |
We should disable zooming with the mouse when the dialog is displayed because it leads to some inconsistencies. |
That'd hopefully be as simple as adding e.g. the following code at the appropriate spots in the various wheel/touch event handlers in the if (PDFViewerApplication.overlayManager.active) {
evt.preventDefault();
return;
} |
790df59
to
c4e89db
Compare
c4e89db
to
6545551
Compare
/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/2dabbc852a819d5/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/2dabbc852a819d5/output.txt Total script time: 1.58 mins Published |
This looks much nicer/better, since it clearly focuses on the active image! One small question, although I'd guess that it's a wontfix since it's an edge-case that might be annoying to fix in general: |
Yep I thought about this case. A way to solve it, would be to take into account only the really visible part of the editor which should be possible but probably more work (we should take into account the toolbar, margins, ...) or maybe there's a smart trick we could use. |
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.
r=me, this looks great; thank you!
It aims to fix the issue spotted in: mozilla#17002 (comment)
No description provided.