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:
parent
97dc1585b1
commit
501fb1cccb
8 changed files with 176 additions and 12 deletions
|
@ -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 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue