Sie sind nicht angemeldet.

milotimbol

Fortgeschrittener

  • »milotimbol« ist der Autor dieses Themas

Beiträge: 242

Wohnort: Philippines

Beruf: Software Developer

  • Nachricht senden

1

Dienstag, 25. Januar 2011, 16:40

disable mousewheel zoom in out

is there a way to disable mousewheel zoom in out? A client want it disabled and want buttons instead.

2

Dienstag, 25. Januar 2011, 16:41

what if you set all the mouse settings to 0 ?

<control usercontrol="all"
mousetype="moveto"
zoomtocursor="false"
zoomoutcursor="true"
mouseaccelerate="1.0"
mousespeed="10.0"
mousefriction="0.8"
mousefovchange="1.0"
keybaccelerate="0.5"
keybspeed="10.0"
keybfriction="0.9"
keybfovchange="0.75"
keybinvert="false"
fovspeed="3.0"
fovfriction="0.9"
movetocursor="none"
cursorsize="10.0"
headswing="0.0"
keycodesleft="37"
keycodesright="39"
keycodesup="38"
keycodesdown="40"
keycodesin="16,65,107"
keycodesout="17,89,90,109"
touchfriction="0.87"
trackpadzoom="true"
/>

3

Dienstag, 25. Januar 2011, 17:00

Hi,

just set mousefovchange to 0.0 to disable the mouse wheel usage,

best regards,
Klaus

mds

Fortgeschrittener

Beiträge: 152

Wohnort: Athens, GA

Beruf: Designer

  • Nachricht senden

4

Samstag, 7. Januar 2012, 02:35

changing mousefovchange works but how would I enable scrolling on the page as well, when hovering a pano?
Say "Hi!" on twitter

fotopano

Anfänger

Beiträge: 8

Wohnort: Gdynia

Beruf: Webdesginer

  • Nachricht senden

5

Dienstag, 9. April 2013, 18:07

I am trying to do this with javascript but can't pass wheeldelta value:

Quellcode

1
<events onmousewheel="js(scrollPage(wheeldelta))"/>


it pass only string not integer :( *unsure*

6

Dienstag, 9. April 2013, 19:58

Hi,

the correct code to pass the value would be:
<events onmousewheel="js(scrollPage(get(wheeldelta)))"/>

Btw - about 'scroll page' - I don't know what you want to achieve, but maybe see also here:
http://krpano.com/docu/html/#mwheel

Best regards,
Klaus

fotopano

Anfänger

Beiträge: 8

Wohnort: Gdynia

Beruf: Webdesginer

  • Nachricht senden

7

Freitag, 12. April 2013, 19:03

Thanks Klaus, I want to have scrolling when mouse cursor is over pano flash object too (not only outside of flash object). It works fine with this simple js function:

Quellcode

1
2
3
4
 function scrollPage(del)
    	{
        	window.scrollBy(0, -(del*20));
    	}

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »fotopano« (12. April 2013, 19:13)