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
@ -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…
x
Reference in New Issue
Block a user