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

Function onDragMouseUp

src/options/utils/dragging.js:148–156  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

146}
147
148function onDragMouseUp() {
149 removeEventListener(eventNames.move, onDragMouseMove);
150 removeEventListener(eventNames.end, onDragMouseUp);
151 stopScrolling();
152 dragged.remove();
153 if (isTouch) noScroll.remove();
154 original.classList.remove('dragging-placeholder');
155 onDrop();
156}
157
158function animate(hoveredIndex) {
159 const delta = lastIndex < hoveredIndex ? height : -height;

Callers

nothing calls this directly

Calls 3

stopScrollingFunction · 0.85
onDropFunction · 0.85
removeMethod · 0.80

Tested by

no test coverage detected