Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

fix browser click event record #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chenglou
Copy link
Contributor

click registers twice when the clicked item is something wrapped inside a label, say a checkbox. Being recorded twice means that during the replay, the checkbox is quickly checked and unchecked. mousedown fixes this.

@chenglou
Copy link
Contributor Author

P.S. can you test this please? I'm sure it works (works on node-huxley) but I can't get pip to install something in my current directory, lol.

@petehunt
Copy link
Contributor

How about mouseup?

@chenglou
Copy link
Contributor Author

why not mousedown? Also, mouseup might happen during a different time.
But yeah, why not mousedown?

@petehunt
Copy link
Contributor

The click doesn't happen until mouseup, right?

`click` registers twice when the clicked item is something wrapped inside a `label`, say a `checkbox`. Being recorded twice means that during the replay, the checkbox is quickly checked and unchecked. `mousedown` fixes this.
@chenglou
Copy link
Contributor Author

oh wow you're right... fixed

@ghost ghost added the CLA Signed label Jul 12, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants