Flashplayer / Browser Mouse-Wheel fixes via Javascript (embedpano.js)
Functions / Fixes:
Mouse-wheel Page scrolling fix - don't scroll the html page when scrolling / zooming inside the viewer.
Flashplayer wmode = transparent / opaque fixes:
Enable mouse-wheel usage.
Detect mouse button releases (mouse-up) outside the viewer.
Enable mouse-wheel usage on Mac OSX.
Use the native Browser mouse-wheel events and wheel-delta values instead of the Flashplayer ones:
The Flashplayer wheel-delta values are 'integer' only and because of this, slow wheel moves
(e.g. by touch-pads or continuous mouse wheels) were ignored or skipped in some browsers.
The Browser native events and wheel-delta values instead are much more accurate and allow the
detection of any kind of mouse-wheel movement.
How it works:
When the mouse is over a krpano viewer and the mouse-wheel will be used, then do zooming/scrolling in the krpano viewer and avoid scrolling the html page.
Note: When testing locally / offline the Flashplayer security settings must be adapted!
Have a look here for more information:
http://krpano.com/docu/localusage/
Testcase:
krpano Version: 1.17
wmode=transparent (1.pano) and wmode=opaque (2.pano)
Known problems / Browser limitations:
Chrome - The embedded Flashplayer of Chrome ignores the Flashplayer security settings, so the Javascript Interface is locally always disabled.
That means the mouse-wheel fixes can't work locally.