pdf.js/web
Rob Wu 28bda9f68b Drop redundant styles from .grab-to-pan-grab:active
`.grab-to-pan-grab:active` is `#viewerContainer` when the mouse is
pressed down.  It is supposed to have a `cursor: grabbing` appearance
immediately on mousedown,

`.grab-to-pan-grabbing` is the overlay that is supposed to cover
everything, and also has the `cursor: grabbing` appearance. The "cover
everything" result is achieved through `position:fixed`, `inset:0`, etc.

The block with these CSS properties for "cover everything" is currently
shared by `.grab-to-pan-grab:active` and `.grab-to-pan-grabbing`, but
only "cursor" need to be shared. The original JS and CSS code at
https://github.com/Rob--W/grab-to-pan.js shows that these were supposed
to be associated with the overlay only.

The PR that added this to PDF.js also shows that the "cover everything"
CSS properties were supposed to be limited to the overlay only:
https://github.com/mozilla/pdf.js/pull/4209#discussion-diff-9285917

But the final version of the PR mistakenly merged them together.
This patch rectifies that mistake.
2023-09-03 19:45:18 +02:00
..
images [Editor] Cheat the stamp editor icon to make a linter in m-c happy 2023-07-10 21:18:05 +02:00
.gitignore Remove obselete file from .gitignore 2015-01-26 16:44:45 +01:00
annotation_editor_layer_builder.css [Editor] Remove the stamp editor displayed when the image was loading (bug 1848313) 2023-08-11 16:46:23 +02:00
annotation_editor_layer_builder.js [Editor] Connect then annotation layer and the editor one 2023-06-05 14:05:52 +02:00
annotation_editor_params.js [Editor] Add a button to explicitly add an image (bug 1848108) 2023-08-11 15:05:46 +02:00
annotation_layer_builder.css [Annotation] Use the clip-path property when an annotation has some quad points 2023-07-20 10:53:23 +02:00
annotation_layer_builder.js Fix JSDoc types 2023-08-31 13:09:52 +02:00
app_options.js [api-minor] Replace the useOnlyCssZoom option with maxCanvasPixels = 0 instead (PR 16729 follow-up) 2023-07-29 13:58:03 +02:00
app.js Re-factor PDFViewerApplication._initializeAutoPrint slightly (PR 16779 follow-up) 2023-08-10 21:36:08 +02:00
base_tree_viewer.js Use modern DOM methods a bit more (PR 15031 follow-up) 2022-06-13 10:47:37 +02:00
chrome-i18n-allow-access-to-file-urls.json Add translations of "Allow access to file URLs" 2015-08-14 18:59:55 +02:00
chromecom.js [CRX] Re-initialize initialBookmark after URL rewrite 2023-07-02 15:28:33 +02:00
compressed.tracemonkey-pldi-09.pdf Add Makefile. Move some files around to make building the website easier. 2011-07-05 10:53:57 -07:00
debugger.css Introduce some :is usage in the debugger CSS 2023-04-19 20:47:57 +02:00
debugger.js Re-factor how the debugger accesses API-functionality 2023-07-25 15:08:02 +02:00
download_manager.js [GeckoView] Add a button to download and open the file in an external app (bug 1829367) 2023-05-05 15:52:15 +02:00
event_utils.js Don't use the deprecated CustomEvent.initCustomEvent method anymore 2023-04-23 15:41:02 +02:00
firefox_print_service.js Convert FirefoxPrintService and PDFPrintService into standard classes 2023-04-14 10:02:28 +02:00
firefoxcom.js [GeckoView] Allow to query pdf.js to know if we can avoid to print a pdf (bug 1846296) 2023-08-01 15:15:04 +02:00
generic_scripting.js [api-minor] Re-factor the PDFScriptingManager class to use private fields/methods 2023-06-22 08:09:58 +02:00
genericcom.js Remove the unused DefaultExternalServices.createDownloadManager options (PR 12191 follow-up) 2022-12-03 12:52:36 +01:00
genericl10n.js Run the PDF.js-viewer API unit-test in Node.js environments (PR 16592 follow-up) 2023-06-26 09:37:34 +02:00
grab_to_pan.js Remove a couple of unused options from the GrabToPan constructor 2023-06-29 13:16:10 +02:00
interfaces.js Introduce a "thumbnailrendered" event to simplify cleanup after thumbnail rendering (PR 12613 follow-up) 2023-05-26 15:30:22 +02:00
l10n_utils.js Move the fixupLangCode helper function into the web/genericl10n.js file 2023-06-21 21:42:53 +02:00
overlay_manager.js Remove the OverlayManager.unregister method since it's completely unused 2023-06-21 13:13:53 +02:00
password_prompt.js Ensure that failing to open the password dialog once won't permanently disable it (PR 15335 follow-up) 2023-07-30 08:46:11 +02:00
pdf_attachment_viewer.js Stop trying to sort the attachments in the sidebar 2023-05-21 09:54:24 +02:00
pdf_cursor_tools.js Create a GrabToPan-instance lazily in the PDFCursorTools class 2023-06-28 12:43:36 +02:00
pdf_document_properties.js Change the createPromiseCapability helper function into a PromiseCapability class 2023-04-29 13:43:24 +02:00
pdf_find_bar.js Reduce some duplication when toggling "expanded" buttons in the viewer toolbars 2023-05-11 12:04:14 +02:00
pdf_find_controller.js Enable the no-lonely-if ESLint rule 2023-07-21 20:10:44 +02:00
pdf_find_utils.js [api-minor] Don't normalize the text used in the text layer. 2023-04-17 14:31:23 +02:00
pdf_history.js Tweak the pdfOpenParams parameter, in the "updateviewarea" event, in PresentationMode 2022-04-05 14:13:20 +02:00
pdf_layer_viewer.js [api-minor] Add basic support for the SetOCGState action (issue 15372) 2022-09-01 17:34:24 +02:00
pdf_link_service.js Stop using removeNullCharacters in the addLinkAttributes helper function 2023-08-31 20:10:50 +02:00
pdf_outline_viewer.js Enable the unicorn/prefer-optional-catch-binding ESLint plugin rule 2023-06-12 11:46:11 +02:00
pdf_page_view.js Fix JSDoc types 2023-08-31 13:09:52 +02:00
pdf_presentation_mode.js Re-enable editing, if necessary, when exiting PresentationMode (PR 16659 follow-up) 2023-07-11 22:34:20 +02:00
pdf_print_service.js [GeckoView] Bundle the Firefox printing code in the viewer (bug 1810111) 2023-07-28 14:10:40 +02:00
pdf_rendering_queue.js Limit some PDFRenderingQueue-related code to the GENERIC viewer 2023-05-30 21:24:19 +02:00
pdf_scripting_manager.component.js Re-factor the PDFScriptingManager-class for the viewer-components 2023-07-16 08:51:46 +02:00
pdf_scripting_manager.js Make sure WillPrint ran before starting printing 2023-07-30 12:38:46 +02:00
pdf_sidebar.js Re-factor updating of thumbnails in the PDFSidebar-class 2023-05-28 17:54:34 +02:00
pdf_single_page_viewer.js Remove the abstract BaseViewer-class 2022-09-08 12:38:17 +02:00
pdf_thumbnail_view.js Fix JSDoc types 2023-08-31 13:09:52 +02:00
pdf_thumbnail_viewer.js Fix JSDoc types 2023-08-31 13:09:52 +02:00
pdf_viewer.component.js Re-factor the PDFScriptingManager-class for the viewer-components 2023-07-16 08:51:46 +02:00
pdf_viewer.css [Editor] Refactor dragging and dropping an editor (bugs 1802895, 1844618) 2023-08-03 14:47:16 +02:00
pdf_viewer.js Fix JSDoc types 2023-08-31 13:09:52 +02:00
pdfjs.js Remove the require from the web/pdfjs.js 2023-07-16 08:51:46 +02:00
preferences.js Enable the no-lonely-if ESLint rule 2023-07-21 20:10:44 +02:00
print_utils.js Enable the unicorn/prefer-dom-node-append ESLint plugin rule 2022-06-12 13:07:03 +02:00
secondary_toolbar.js Reduce some duplication when toggling "expanded" buttons in the viewer toolbars 2023-05-11 12:04:14 +02:00
struct_tree_layer_builder.js Ignore null-chars when using structTree-data in the viewer 2023-08-31 16:29:10 +02:00
stubs-geckoview.js [GeckoView] Remove the Toolbar-stub since the viewer has an actual toolbar now 2023-05-24 12:31:27 +02:00
text_accessibility.js Move binarySearchFirstItem back to the web/-folder (PR 15237 follow-up) 2022-08-14 11:38:17 +02:00
text_highlighter.js [api-minor] Don't normalize the text used in the text layer. 2023-04-17 14:31:23 +02:00
text_layer_builder.css Don't include Chrome-specific CSS rules in MOZCENTRAL builds 2023-04-20 14:14:33 +02:00
text_layer_builder.js Allow text-selection, but not copying, when enablePermissions is set (PR 16320 follow-up) 2023-04-25 11:07:05 +02:00
toolbar-geckoview.js [GeckoView] Add some telemetry for the toolbar buttons (bug 1829216) 2023-05-22 16:43:09 +02:00
toolbar.js [Editor] Add a button to explicitly add an image (bug 1848108) 2023-08-11 15:05:46 +02:00
ui_utils.js Fix JSDoc types 2023-08-31 13:09:52 +02:00
view_history.js Add a bit more validation in the ViewHistory constructor 2020-03-21 13:55:06 +01:00
viewer-geckoview.css [GeckoView] Add missing CSS variables for the dialog functionality 2023-07-30 17:23:21 +02:00
viewer-geckoview.html [GeckoView] Bundle the Firefox printing code in the viewer (bug 1810111) 2023-07-28 14:10:40 +02:00
viewer-geckoview.js [GeckoView] Bundle the Firefox printing code in the viewer (bug 1810111) 2023-07-28 14:10:40 +02:00
viewer-snippet-chrome-extension.html Wraps mozL10n to async calls; splits firefox and generic l10n libs. 2017-05-31 09:22:25 -05:00
viewer-snippet-chrome-overlays.html Convert the existing overlays to use <dialog> elements (issue 14698) 2022-03-28 11:36:29 +02:00
viewer-snippet-firefox-extension.html Remove <base> tag from the Firefox built-in viewer (bug 1821408) 2023-03-14 10:12:42 +01:00
viewer-snippet-minified.html Remove XHTML leftovers from the viewer HTML files 2016-02-14 13:23:34 +01:00
viewer-snippet.html Wraps mozL10n to async calls; splits firefox and generic l10n libs. 2017-05-31 09:22:25 -05:00
viewer.css Drop redundant styles from .grab-to-pan-grab:active 2023-09-03 19:45:18 +02:00
viewer.html Add the "aria-controls" attribute to the StampEditor toolbar-button 2023-08-22 10:05:21 +02:00
viewer.js [Editor] Add a button to explicitly add an image (bug 1848108) 2023-08-11 15:05:46 +02:00
xfa_layer_builder.css Introduce some :is usage in the xfaLayer CSS 2023-04-17 23:32:04 +02:00
xfa_layer_builder.js Fix JSDoc types 2023-08-31 13:09:52 +02:00