1
0
Fork 0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-07-04 04:26:35 +02:00

Fix isPointInPath and isPointInStroke

Fixes #696
This commit is contained in:
kkapsner 2024-04-07 01:53:01 +02:00
parent 40a8012ab0
commit 825fa42141
2 changed files with 3 additions and 3 deletions

View file

@ -427,7 +427,7 @@
return getIsPointValue({
func: (x, y) => original.call(this, x, y, args[2]),
x, y,
index: x + this.width * y,
index: x + this.canvas.width * y,
originalValue, window, prefs
});
}
@ -462,7 +462,7 @@
return getIsPointValue({
func,
x, y,
index: x + this.width * y,
index: x + this.canvas.width * y,
originalValue, window, prefs
});
}