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

fix browser click event record#37

Open
chenglou wants to merge 1 commit intofacebookarchive:masterfrom
chenglou:input-click
Open

fix browser click event record#37
chenglou wants to merge 1 commit intofacebookarchive:masterfrom
chenglou:input-click

Conversation

@chenglou
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

How about mouseup?

@chenglou
Copy link
Copy Markdown
Contributor Author

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

@petehunt
Copy link
Copy Markdown
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
Copy Markdown
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