mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
Fixed ellipse hit test if sizes are negative (#205)
This commit is contained in:
parent
d0365933a9
commit
7bf0184499
1 changed files with 2 additions and 2 deletions
|
@ -27,8 +27,8 @@ export function hitTest(
|
|||
let tx = 0.707;
|
||||
let ty = 0.707;
|
||||
|
||||
const a = element.width / 2;
|
||||
const b = element.height / 2;
|
||||
const a = Math.abs(element.width) / 2;
|
||||
const b = Math.abs(element.height) / 2;
|
||||
|
||||
[0, 1, 2, 3].forEach(x => {
|
||||
const xx = a * tx;
|
||||
|
|
Loading…
Add table
Reference in a new issue