MCPcopy Create free account
hub / github.com/openscopeproject/InteractiveHtmlBom / mouseUpHandler

Function mouseUpHandler

InteractiveHtmlBom/web/table-util.js:18–33  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

16 let wasDragged;
17
18 const mouseUpHandler = function(e) {
19 // Delete dragging element
20 draggingElement.remove();
21
22 // Make BOM selectable again
23 bom.style.removeProperty("user-select");
24
25 // Remove listeners
26 document.removeEventListener('mousemove', mouseMoveHandler);
27 document.removeEventListener('mouseup', mouseUpHandler);
28
29 if (wasDragged) {
30 // Redraw whole BOM
31 populateBomTable();
32 }
33 }
34
35 const mouseMoveHandler = function(e) {
36 // Notice the dragging

Callers

nothing calls this directly

Calls 1

populateBomTableFunction · 0.85

Tested by

no test coverage detected