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:
commit
086cb6630e
1 changed files with 8 additions and 0 deletions
|
@ -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 = () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue