mirror of
https://github.com/servo/servo
synced 2026-05-05 22:52:07 +02:00
This change improves the counting of clicks for mouse button events by ensuring that `detail` property of those events includes the click count. This `detail` differs from that of `dblclick` events where the `detail` is always 2. In addition, it ensures that the click count can increase for mouse buttons that do not cause `click` and `dblclick` events (such as the right mouse button). Testing: This change adds two Servo-specific WPT-style tests. While this behavior is specified a bit, the details are implementation specific. Signed-off-by: Martin Robinson <mrobinson@igalia.com>