ladybird/Libraries
Psychpsyo 7f989765f5 LibWeb: Fix MouseEvent position values
The clientX and clientY values are, as per the spec, the offset from
the viewport.
This makes them actually be that and also fixes up the calculations
for offsetX, offsetY, pageX and pageY.
I assume all of these got messed up in some sort of refactor in the
past.

The spec comment from the now-removed
compute_mouse_event_client_offset() function sadly has no convenient
place to be anymore so, for now, it is just gone as well.
Personally, I think it'd make sense to refactor a lot of this file so
that not every mouse event repeats a large chunk of (almost) identical
code. That way there'd be a nice place to put the comment without
repeating it all over the file.
But that is out of the scope of this PR.

Also: I know, offsetX and Y are not fully fixed yet, they still
don't ignore the element's CSS transforms but I am working on that
in a new PR.
2024-11-21 13:22:22 +01:00
..
LibArchive Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
LibCompress LibCompress: Clean up #include directives 2024-11-20 15:17:31 +01:00
LibCore LibCore+LibTLS: Add an API for connect()'ing 'with hostname 2024-11-20 21:37:58 +01:00
LibCrypto LibCrypto: Add user-defined literals to convert numbers to a BigInt 2024-11-20 19:04:30 -05:00
LibDiff Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
LibDNS LibDNS: Immediately resolve IPv4/IPv6 "hostnames" if A/AAAA is queried 2024-11-20 21:37:58 +01:00
LibFileSystem LibFileSystem: Fix Windows build 2024-11-21 11:15:49 +01:00
LibGC LibGC: Add Swift bindings to the GC heap 2024-11-19 14:32:11 -07:00
LibGfx LibGfx: Round values in Color::with_opacity() 2024-11-21 11:59:44 +00:00
LibHTTP LibHTTP: Make HeaderMap movable and copyable 2024-11-20 21:37:58 +01:00
LibIDL LibIDL: Fix use-after-free in GenerateWindowOrWorkerInterfaces 2024-11-16 10:30:14 +01:00
LibImageDecoderClient Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
LibIPC Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
LibJS LibJS: Implement Temporal.Duration.prototype.valueOf 2024-11-20 19:04:30 -05:00
LibLine Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
LibMain Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
LibMedia Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
LibRegex LibRegex: Avoid generating ForkJumps when jumping to the next alt block 2024-11-17 20:12:39 +01:00
LibRequests LibRequests: Don't crash on requests without a read stream finishing 2024-11-20 21:37:58 +01:00
LibRIFF Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
LibSyntax Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
LibTest LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
LibTextCodec Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
LibThreading Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
LibTLS LibCore+LibTLS: Add an API for connect()'ing 'with hostname 2024-11-20 21:37:58 +01:00
LibUnicode Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
LibURL Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
LibWasm LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
LibWeb LibWeb: Fix MouseEvent position values 2024-11-21 13:22:22 +01:00
LibWebSocket Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
LibWebView LibDNS+LibWeb+Ladybird+RequestServer: Let there be DNS over TLS 2024-11-20 21:37:58 +01:00
LibXML Revert "LibWeb: Set doctype node immediately while parsing XML document" 2024-11-20 19:11:56 -05:00