Xetera / ghost-cursor

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

Delay of cusor.click() #24

Closed Nevgup closed 3 years ago

Nevgup commented 3 years ago

Hello !

When I use cursor.click(element) and then make a page.keyboard.type(), there is a delay between the click and the first keystroke. How can I reduce the click delay please ?

Thanks !

Niek commented 3 years ago

Hello, this is the line in question: https://github.com/Xetera/ghost-cursor/blob/3c3b4ab9f8f0f6103d64f4e64f3218313c448c63/src/spoof.ts#L209 If you want to create a PR to make this an option, you're welcome :)

Nevgup commented 3 years ago

I'll try to make it soon, thanks for the help ! :)

Thanks !