1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

[Editor] Disable the thickness slider for non-free highlight

This commit is contained in:
Calixte Denizet 2024-02-09 22:34:05 +01:00
parent 964bfe522b
commit b5e446213e
3 changed files with 5 additions and 0 deletions

View file

@ -84,6 +84,9 @@ class AnnotationEditorParams {
case AnnotationEditorParamsType.HIGHLIGHT_THICKNESS:
editorFreeHighlightThickness.value = value;
break;
case AnnotationEditorParamsType.HIGHLIGHT_FREE:
editorFreeHighlightThickness.disabled = !value;
break;
}
}
});