mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 13:02:09 +02:00
LibWeb: Fix mouse event offset computation with nested CSS transforms
compute_mouse_event_offset() only inverted the target element's own CSS transform, ignoring ancestor transforms. This caused incorrect offsetX/ offsetY values when elements were nested inside transformed parents. Use AccumulatedVisualContext::inverse_transform_point() to invert the full ancestor transform chain instead.
This commit is contained in:
committed by
Alexander Kalenik
parent
176e3b93b3
commit
24c08b7d42
Notes:
github-actions[bot]
2026-02-06 10:51:28 +00:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/LadybirdBrowser/ladybird/commit/24c08b7d429 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7701
@@ -1,2 +1,2 @@
|
||||
offsetX: 55
|
||||
offsetX: 5
|
||||
offsetY: 5
|
||||
|
||||
Reference in New Issue
Block a user