MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / upHandler

Method upHandler

src/pages/quickTools/quickTools.js:275–284  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

273 };
274
275 const upHandler = () => {
276 document.removeEventListener("mousemove", moveHandler);
277 document.removeEventListener("mouseup", upHandler);
278
279 if (this.dragState) {
280 this.endDrag();
281 } else {
282 this.handleClick(target);
283 }
284 };
285
286 document.addEventListener("mousemove", moveHandler);
287 document.addEventListener("mouseup", upHandler);

Callers

nothing calls this directly

Calls 2

endDragMethod · 0.95
handleClickMethod · 0.95

Tested by

no test coverage detected