mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
[Editor] Refactor dragging and dropping an editor (bugs 1802895, 1844618)
It'll help to have a full control on what's happening when moving an editor.
This commit is contained in:
parent
0725b6299f
commit
b59b1a81a9
11 changed files with 170 additions and 75 deletions
|
@ -81,7 +81,7 @@
|
|||
}
|
||||
|
||||
.annotationEditorLayer
|
||||
:is(.freeTextEditor, .inkEditor, .stampEditor)[draggable="true"] {
|
||||
:is(.freeTextEditor, .inkEditor, .stampEditor).draggable {
|
||||
cursor: move;
|
||||
}
|
||||
|
||||
|
|
|
@ -87,6 +87,10 @@
|
|||
height: var(--viewer-container-height);
|
||||
}
|
||||
|
||||
.pdfViewer.noUserSelect {
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
/*#if GENERIC*/
|
||||
.pdfViewer.removePageBorders .page {
|
||||
margin: 0 auto 10px;
|
||||
|
|
|
@ -849,6 +849,7 @@ class PDFViewer {
|
|||
} else if (isValidAnnotationEditorMode(mode)) {
|
||||
this.#annotationEditorUIManager = new AnnotationEditorUIManager(
|
||||
this.container,
|
||||
this.viewer,
|
||||
this.eventBus,
|
||||
pdfDocument,
|
||||
this.pageColors
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue