/** * Whether a wheel event over the drawing should zoom it: only with Ctrl or * Cmd held. A trackpad pinch arrives as a wheel event with ctrlKey set, so it * zooms too; a plain wheel is left to scroll the page. */ export function wheelZooms(e: Pick): boolean { return e.ctrlKey || e.metaKey; }