[Webkit-unassigned] [Bug 81855] DOM 3 Event, Implement MouseEvent buttons member
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Jul 15 21:03:31 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=81855
--- Comment #1 from Brandon Andrews <sirisian at gmail.com> 2012-07-15 21:03:31 PST ---
Here's an example that complies with the DOM 3 events
http://sirisian.com/javascript/dom3buttons.html
source:
<!doctype html>
<html lang="en">
<head>
<title>Dom 3 Buttons</title>
<script type="text/javascript">
"use strict";
window.onload = function()
{
window.addEventListener("mousedown", function(e)
{
e.preventDefault();
console.log(e.buttons);
}, false);
window.addEventListener("mouseup", function(e)
{
e.preventDefault();
console.log(e.buttons);
}, false);
}
</script>
</head>
<body>
</body>
</html>
The information for implementing it is in the spec:
http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#events-MouseEvent-buttons
Currently it's undefined in webkit.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list