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

Function stop

packages/core/src/utils/ColorPicker.ts:1164–1176  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1162 }
1163
1164 function stop() {
1165 if (dragging) {
1166 $(doc).unbind(duringDragEvents);
1167 $(doc.body).removeClass('sp-dragging');
1168
1169 // Wait a tick before notifying observers to allow the click event
1170 // to fire in Chrome.
1171 setTimeout(function () {
1172 onstop.apply(element, arguments);
1173 }, 0);
1174 }
1175 dragging = false;
1176 }
1177
1178 $(element).bind('touchstart mousedown', start);
1179 }

Callers 1

moveFunction · 0.70

Calls 1

removeClassMethod · 0.80

Tested by

no test coverage detected