Xetera / ghost-cursor

🖱️ Generate human-like mouse movements with puppeteer or on any 2D plane
MIT License
1.08k stars 118 forks source link

Fix JS Memory heap out issue #104

Closed sharifpour closed 1 year ago

sharifpour commented 1 year ago

When the width of the element is 0, the fitts calculation returns infinity and then it leads to the JS memory heap out and process termination. This PR solves the issue.

Related to issue #28

Niek commented 1 year ago

Good find! Can you fix the linting and use !==?

sharifpour commented 1 year ago

Done! 👍

Niek commented 1 year ago

Thanks, merged now!

Niek commented 1 year ago

Released as v1.1.19