mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-08-03 12:57:20 +02:00
Compare commits
No commits in common. "539a81c7a3cd6bc803da046813631b093e33675c" and "220a28933c30c34bf32ff0ac9b43fea6649b5ca2" have entirely different histories.
539a81c7a3
...
220a28933c
@ -1680,7 +1680,6 @@ class AnnotationEditorUIManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.#updateModeCapability = Promise.withResolvers();
|
this.#updateModeCapability = Promise.withResolvers();
|
||||||
this.#currentDrawingSession?.commitOrRemove();
|
|
||||||
|
|
||||||
this.#mode = mode;
|
this.#mode = mode;
|
||||||
if (mode === AnnotationEditorType.NONE) {
|
if (mode === AnnotationEditorType.NONE) {
|
||||||
|
|||||||
@ -215,12 +215,9 @@ class TouchManager {
|
|||||||
if (evt.touches.length >= 2) {
|
if (evt.touches.length >= 2) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// #touchMoveAC shouldn't be null but it seems that irl it can (see #19793).
|
this.#touchMoveAC.abort();
|
||||||
if (this.#touchMoveAC) {
|
this.#touchMoveAC = null;
|
||||||
this.#touchMoveAC.abort();
|
this.#onPinchEnd?.();
|
||||||
this.#touchMoveAC = null;
|
|
||||||
this.#onPinchEnd?.();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!this.#touchInfo) {
|
if (!this.#touchInfo) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@ -163,7 +163,6 @@
|
|||||||
--thickness-bg: var(--dialog-bg-color);
|
--thickness-bg: var(--dialog-bg-color);
|
||||||
--thickness-label-color: var(--primary-color);
|
--thickness-label-color: var(--primary-color);
|
||||||
--thickness-slider-color: var(--primary-color);
|
--thickness-slider-color: var(--primary-color);
|
||||||
--thickness-border: none;
|
|
||||||
--draw-cursor: url(images/cursor-editorInk.svg) 0 16, pointer;
|
--draw-cursor: url(images/cursor-editorInk.svg) 0 16, pointer;
|
||||||
|
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
@ -220,7 +219,6 @@
|
|||||||
--thickness-bg: Canvas;
|
--thickness-bg: Canvas;
|
||||||
--thickness-label-color: CanvasText;
|
--thickness-label-color: CanvasText;
|
||||||
--thickness-slider-color: ButtonText;
|
--thickness-slider-color: ButtonText;
|
||||||
--thickness-border: 1px solid var(--border-color);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#addSignatureDialogLabel {
|
#addSignatureDialogLabel {
|
||||||
@ -412,18 +410,12 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
padding: 6px 8px 7px;
|
padding: 6px 8px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
background-color: var(--thickness-bg);
|
background-color: var(--thickness-bg);
|
||||||
border-radius: 4px 4px 0 0;
|
border-radius: 4px 4px 0 0;
|
||||||
border-inline: var(--thickness-border);
|
|
||||||
border-top: var(--thickness-border);
|
|
||||||
pointer-events: auto;
|
pointer-events: auto;
|
||||||
|
|
||||||
/* Move the div in order to cover to bottom border of the area. */
|
|
||||||
position: relative;
|
|
||||||
top: 1px;
|
|
||||||
|
|
||||||
> label {
|
> label {
|
||||||
color: var(--thickness-label-color);
|
color: var(--thickness-label-color);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user