1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 15:17:46 +00:00

LibWeb: Dispatch "wheel" event

This commit is contained in:
Aliaksandr Kalenik 2022-10-17 20:54:01 +03:00 committed by Linus Groh
parent 97dc1585b1
commit 501fb1cccb
8 changed files with 176 additions and 12 deletions

View file

@ -21,7 +21,7 @@ struct MouseEventInit : public EventModifierInit {
i16 button = 0;
};
class MouseEvent final : public UIEvent {
class MouseEvent : public UIEvent {
WEB_PLATFORM_OBJECT(MouseEvent, UIEvent);
public:
@ -43,9 +43,10 @@ public:
virtual u32 which() const override { return m_button + 1; }
private:
protected:
MouseEvent(JS::Realm&, FlyString const& event_name, MouseEventInit const& event_init);
private:
void set_event_characteristics();
double m_offset_x { 0 };