1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:47:35 +00:00

LibWeb: Change the type of MouseEvent members to double

These are defined as integers only in the legacy specification, the
new one defines these as doubles.
This commit is contained in:
Idan Horowitz 2021-10-01 20:44:50 +03:00 committed by Andreas Kling
parent f74b612aa4
commit 37586f61be
2 changed files with 12 additions and 11 deletions

View file

@ -10,7 +10,7 @@
namespace Web::UIEvents {
MouseEvent::MouseEvent(const FlyString& event_name, i32 offset_x, i32 offset_y, i32 client_x, i32 client_y)
MouseEvent::MouseEvent(const FlyString& event_name, double offset_x, double offset_y, double client_x, double client_y)
: UIEvent(event_name)
, m_offset_x(offset_x)
, m_offset_y(offset_y)