mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
added dispatching for mousedown and mouseup events, fixes #5705
This commit is contained in:
parent
b0a7d1bf86
commit
c069d1753e
4 changed files with 79 additions and 31 deletions
14
tests/html/test_mouse_down_mouse_up_click.html
Normal file
14
tests/html/test_mouse_down_mouse_up_click.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
<body>
|
||||
<input id="clicked">
|
||||
<script>
|
||||
document.getElementById("clicked").addEventListener("mousedown", function () {
|
||||
window.alert("mousedown"); },
|
||||
false);
|
||||
document.getElementById("clicked").addEventListener('mouseup', function() {
|
||||
window.alert("mouseup"); },
|
||||
false);
|
||||
document.getElementById("clicked").addEventListener("click", function() {
|
||||
window.alert("clicked"); },
|
||||
false);
|
||||
</script>
|
||||
</body>
|
Loading…
Add table
Add a link
Reference in a new issue