Hi!
As a new member I have to ask a question again, but I hope after some weeks I will be enabled to help another newbies.
So... I put a pano on the webpage. But if I want to zoom in or out the pano with the scrollwheel, the web page catch this event and scroll itself. How to avoid to scroll the whole page but only the pano?
Regards
G.
how to zoom a pano without page scrolling?
-
-
You have to make sure to include the swfkrpanomousewheel.js in your embed code... and note that there are two different versions... one for swfobject 1.5 and a different one for swfobject 2.1
Look in the download package for 1.0.7 --> krpano-1.0.7 --> examples --> htmlembedding --> swfobjectXx--> mousewheelfix.html for sample code.
Note - there are two folders to choose from... swfobject15 and swfobject21... choose the one appropriate for your setup.
Good luck,
Graydon
-
if you are running the pano in an Iframe you could try setting scrolling="no" also.
-
I have just simply put the panorama into the html code.
And included in html this code also:Code<script type="text/javascript" src="./swfobject/swfobject.js"></script> <script type="text/javascript" src="./swfobject/swfkrpanomousewheel.js"></script>
I don't understand the examples of swfobject 1.5 and swfobject 2.1, because it scrolls the whole page as well. -
what browser are you using?
I think safari on windows is the only one this doesn't work for.
-
If you are testing locally... then the flash security settings may block the mousewheel fix...
see... http://www.krpano.com/forum/wbb/inde…D=73&highlight=
If you have a sample online, post the link and we'll take a closer look at it.
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!