You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

events.md 1.0 KiB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # API Events
  2. ## `load`
  3. Fired when a panorama finishes loading.
  4. ## `scenechange`
  5. Fired when a scene change is initiated. A `load` event will be fired when the
  6. new scene finishes loading. Passes scene ID string to handler.
  7. ## `fullscreenchange`
  8. Fired when browser fullscreen status changed, Passes status boolean to handler.
  9. ## `zoomchange`
  10. Fired when scene hfov update, Passes new hfov value to handler.
  11. ## `scenechangefadedone`
  12. If a scene transition fade interval is specified, this event is fired when the
  13. fading is completed after changing scenes.
  14. ## `error`
  15. Fired when an error occured. The error message string is passed to the
  16. event listener.
  17. ## `errorcleared`
  18. Fired when an error is cleared.
  19. ## `mousedown`
  20. Fired when the mouse button is pressed. Passes `MouseEvent` to handler.
  21. ## `mouseup`
  22. Fired when the mouse button is released. Passes `MouseEvent` to handler.
  23. ## `touchstart`
  24. Fired when a touch starts. Passes `TouchEvent` to handler.
  25. ## `touchend`
  26. Fired when a touch ends. Passes `TouchEvent` to handler.