Yep, this one works with ASV3 and ie6

The question is: For how long?

Since the Eolas patent thing ie6 is soon to change the way it handles
plugin content via the embed tag ...


--- In [email protected], "xof" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> Here is a working example of using the mousewheel event in IE + ASV6
(can�t
> remember if it works in ASV3). The svg file is called from an embed
element
> and this may not be what you need.
> 
> http://www.geoloc.org/app/CITYFINDER/ 
> 
> An onmousewheel attribute is placed in the embed element:
> 
> <embed onmousewheel="myMapController.doOnMouseWheel()"
type="image/svg+xml"
> src="map.svg" ...></embed
> 
> 
> In myMapController:
> 
>       this.doOnMouseWheel = function(){
>               if (event.wheelDelta >= 120){
>                       this.playZoomSound('-');
>                       if(this.vbM) this.vbM.zoomOut();  
>               }else if (event.wheelDelta <= -120){
>                       this.playZoomSound('+');
>                       if(this.vbM) this.vbM.zoomIn();  
>               }
>       }
> 
> From where comes this magic number 120 ?
> I can't remember, the code almost 3 years old, but it seems to work
fine.
> 
> 
> Cheers
> 
> Christophe
> 
> ________________________________________
> From: [email protected]
[mailto:[EMAIL PROTECTED]
> On Behalf Of Holger Will
> Sent: mardi 1 ao�t 2006 17:21
> To: [email protected]
> Subject: Re: [svg-developers] Re: mousewheel event
> 
> > 
> 
> Hi Michael
> 
> >>using a Microsoft Mouse on WinXP I got the value 3 for each increment
> >>of the mousewheel (the Microsoft wheel has notches) and it turns out
> >>that in the Mouse Control Panel (System Preferences) the wheel
> >>settings were to "move 3 lines per increment". And indeed, changing
> >>this value was identically reflected in "evt.detail"
> 
> thanks a lot, thats some useful information there. i cant wait to see 
> this specified, and
> usable in more browsers.
> 
> cheers
> Holger
>







-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to