mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:17:46 +00:00
Ladybird+LibWeb: Add MouseEvent screenX and screenY support
This commit is contained in:
parent
e584189b8f
commit
836a7b00dd
19 changed files with 125 additions and 103 deletions
|
@ -10,7 +10,7 @@
|
|||
<script>
|
||||
function handle(e) {
|
||||
var out = document.getElementById('out');
|
||||
out.innerHTML = e.type + ' @ ' + e.offsetX + ',' + e.y + '\n' + out.innerHTML;
|
||||
out.innerHTML = `${e.type} | client: ${e.clientX}x${e.y} | screen: ${e.screenX}x${e.screenY}\n${out.innerHTML}`;
|
||||
}
|
||||
|
||||
var rect = document.getElementById('rect');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue