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

[Editor] Avoid to scroll when dragging an editor on a touch screen

This commit is contained in:
Calixte Denizet 2024-11-21 22:54:07 +01:00
parent 5b600e8f84
commit aef150d38a

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 = () => {