Magnum::Platform::EmscriptenApplication::ScrollEvent class new in Git master

Scroll event.

Base classes

class InputEvent
Base for input events.

Public functions

auto offset() const -> Vector2
Scroll offset.
auto position() const -> Vector2
Position.
auto modifiers() const -> EmscriptenApplication::Modifiers
Keyboard modifiers.
auto event() const -> const EmscriptenWheelEvent&
Underlying Emscripten event.

Function documentation

Vector2 Magnum::Platform::EmscriptenApplication::ScrollEvent::position() const

Position.

The position is always reported in whole pixels.