ladybird/Tests/LibWeb/Text/input/UIEvents/pointer-events.html
Aliaksandr Kalenik 8614e0f856 LibWeb: Dispatch pointer events in EventHandler
Now, along with the mouse events we also dispatch pointerup, pointerdown
and pointermove.

With this change shape painting works on https://excalidraw.com/
2024-11-22 00:32:58 +01:00

24 lines
599 B
HTML

<!DOCTYPE html>
<script src="../include.js"></script>
<script>
asyncTest(done => {
function logEvent(event) {
println(`${event.type} at (${event.clientX}, ${event.clientY})`);
if (event.type === "mouseup") {
done();
}
}
const eventsToLog = [
'pointerdown',
'pointerup',
'mousedown',
'mouseup',
];
eventsToLog.forEach(eventType => {
window.addEventListener(eventType, logEvent);
});
internals.click(10, 20);
});
</script>