MCPcopy
hub / github.com/GrapesJS/grapesjs / prevent

Function prevent

packages/core/src/utils/ColorPicker.ts:1111–1119  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

1109 duringDragEvents['touchend mouseup'] = stop;
1110
1111 function prevent(e) {
1112 if (e.stopPropagation) {
1113 e.stopPropagation();
1114 }
1115 if (e.preventDefault) {
1116 e.preventDefault();
1117 }
1118 e.returnValue = false;
1119 }
1120
1121 function move(e) {
1122 if (dragging) {

Callers 2

moveFunction · 0.85
startFunction · 0.85

Calls 1

preventDefaultMethod · 0.80

Tested by

no test coverage detected