MCPcopy Index your code
hub / github.com/ChartGPU/ChartGPU / disable

Function disable

src/interaction/createInsideZoom.ts:182–190  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

180 };
181
182 const disable: InsideZoom['disable'] = () => {
183 if (disposed || !enabled) return;
184 enabled = false;
185 eventManager.off('mousemove', onMouseMove);
186 eventManager.off('mouseleave', onMouseLeave);
187 eventManager.canvas.removeEventListener('wheel', onWheel);
188 lastPointer = null;
189 clearPan();
190 };
191
192 const dispose: InsideZoom['dispose'] = () => {
193 if (disposed) return;

Callers 1

disposeFunction · 0.85

Calls 2

clearPanFunction · 0.85
offMethod · 0.65

Tested by

no test coverage detected