Fixing some bugs. fixing some scroll issues
This commit is contained in:
parent
6f217a0923
commit
5c76f9f3a2
6 changed files with 25 additions and 16 deletions
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue