We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 478be52 commit b403e6eCopy full SHA for b403e6e
src/UI/pen.js
@@ -20,10 +20,13 @@ let lines = [];
20
* @param {PointerEvent} e The DOM event to be handled
21
*/
22
function handleDocumentPointerdown(e) {
23
- e.preventDefault();
24
path = null;
25
lines = [];
26
_candraw = true;
+ if (!e.srcElement.classList.contains('annotationLayer')) {
27
+ return;
28
+ }
29
+ e.preventDefault();
30
}
31
32
/**
@@ -179,4 +182,3 @@ export function disablePen() {
179
182
document.removeEventListener('keyup', handleDocumentKeyup);
180
183
enableUserSelect();
181
184
-
0 commit comments