MCPcopy Create free account
hub / github.com/violentmonkey/violentmonkey / onTouchMoveDetect

Function onTouchMoveDetect

src/options/utils/dragging.js:85–95  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

83}
84
85function onTouchMoveDetect(e) {
86 onTouchEndDetect();
87 if (e === 'timer') {
88 original::onDragStart(longPressEvent);
89 if (IS_FIREFOX && parentCanScroll()) {
90 // FF bug workaround: prevent the script list container from scrolling on drag
91 parent.scrollTop += 1;
92 parent.scrollTop -= 1;
93 }
94 }
95}
96
97function onTouchEndDetect() {
98 clearTimeout(longPressTimer);

Callers

nothing calls this directly

Calls 3

onTouchEndDetectFunction · 0.85
onDragStartFunction · 0.85
parentCanScrollFunction · 0.85

Tested by

no test coverage detected