Fixing some bugs. fixing some scroll issues

This commit is contained in:
Dustin Swan 2026-02-15 21:25:51 -07:00
parent 6f217a0923
commit 5c76f9f3a2
No known key found for this signature in database
GPG key ID: 30D46587E2100467
6 changed files with 25 additions and 16 deletions

View file

@ -269,7 +269,7 @@ export function runAppCompiled(canvas: HTMLCanvasElement, store: any) {
const y = e.clientY - rect.top;
const hit = scrollHitTest(x, y);
if (hit) {
if (hit && typeof hit.onScroll === 'function') {
const delta = { deltaX: Math.round(e.deltaX), deltaY: Math.round(e.deltaY) };
handleEvent(hit.onScroll(delta));
}