Set detail field to be 1 by default for mouse events.

The spec says this should be "A count of consecutive  clicks that happened in a short amount of time, incremented by one."

This change matches the typical behaviour in FF.
This commit is contained in:
Glenn Watson 2015-07-22 08:17:57 +10:00
parent b1c4862119
commit 2a2c7e18c0

View file

@ -650,7 +650,7 @@ impl<'a> DocumentHelpers<'a> for &'a Document {
EventBubbles::Bubbles,
EventCancelable::Cancelable,
Some(window.r()),
0i32,
1i32,
x, y, x, y,
false, false, false, false,
0i16,