Flashplayer / Browser Mouse-Wheel fixes via Javascript (swfkrpano.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.0.8.15
no wmode setting
Tested successfully on:
Windows
Firefox 3.6.28
Firefox 15.0.1
Chrome 21.0 (almost - see known problems)
Safari 5.1.7
Opera 12.02 (almost - see known problems)
IE 6, IE 7, IE 8, IE 9, IE 10
Mac
Firefox 15.0.1
Chrome 21.0 (almost - see known problems)
Safari 6.0
Opera 12.02 (almost - see known problems)
Known problems / Browser limitations:
Opera 12.02 - mouse-button releases (mouse-up) outside the browser are not detectable when using wmode=transparent/opaque.
Chrome 21.0 - 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.