1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-23 08:38:06 +02:00

Merge pull request #19087 from calixteman/no_scroll_when_dragging

[Editor] Avoid to scroll when dragging an editor on a touch screen
This commit is contained in:
calixteman 2024-11-22 09:53:49 +01:00 committed by GitHub
commit 086cb6630e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1134,6 +1134,14 @@ class AnnotationEditor {
capture: true,
signal,
});
window.addEventListener(
"touchmove",
e => {
// Prevent the page from scrolling.
e.preventDefault();
},
{ passive: false, signal }
);
}
const pointerUpCallback = () => {