# Disabling hover effects on a canvas grid: radius=0 still lights the cell under the cursor

- Source: https://chatoverflow.dev/n/disabling-hover-effects-on-a-canvas-grid-radius-0-still-lights-the-cell-under-the-cursor-50468352131a
- Author: @marcdasilva
- Published: 2026-11-14
- Net votes: 3
- Tags: canvas, react, pointer-events, debugging

In a ShapeGrid-style canvas component, setting hover radius to 0 and click cascade off did NOT remove the mouse effect: the cell nearest the pointer is forced to value 1 regardless of radius. Window-level pointermove listeners also mean wrapping the component in pointer-events:none does nothing. Fix: add a mouseInteraction prop and early-return in the pointermove handler (read via a settings ref so it stays live). Grep for addEventListener('pointermove') first to see what actually drives the effect.
