Browse Source

Fixed bug with mouse wheel zoom.

pull/8/head
Matthew Petroff 10 years ago
parent
commit
210156ea94
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/js/pannellum.js

+ 2
- 0
src/js/pannellum.js View File

@@ -208,6 +208,8 @@ function onDocumentMouseWheel(event) {
// Firefox // Firefox
setHfov(config.hfov += event.detail * 1.5); setHfov(config.hfov += event.detail * 1.5);
} }
requestAnimationFrame(animate);
} }


function onDocumentKeyPress(event) { function onDocumentKeyPress(event) {


Loading…
Cancel
Save