The Events constructor.
The main HTMLMicrioElement instance.
Writable store indicating if event handling is currently enabled. Set to false during tours or animations.
Getter for the current value of the enabled store.
Checks if the user is currently interacting with the map via panning, pinching, or wheeling.
True if the user is actively navigating.
Flag indicating if scroll listeners are attached.
Hooks all necessary event listeners based on current settings.
Hooks pointer down/move/up listeners for drag panning.
Hooks keyboard event listeners.
Hooks touch pinch and macOS gesture event listeners.
Hooks mouse wheel/scroll event listeners.
Hooks zoom-related event listeners (pinch, scroll, double-tap/click).
Unhooks all attached event listeners.
Unhooks pointer listeners for drag panning.
Unhooks keyboard event listeners.
Unhooks touch pinch and macOS gesture event listeners.
Unhooks mouse wheel/scroll event listeners.
Unhooks zoom-related event listeners.
Handles user input events (mouse, touch, keyboard, wheel, gestures) for the Micrio viewer. Translates browser events into camera movements (pan, zoom), dispatches custom Micrio events, and manages interaction states like panning, pinching, and enabled/disabled states. Accessed via
micrio.events.Author
Marcel Duin marcel@micr.io