Hi guys,
Thanks for your help. I need to get it working in IE though - I tried
addeventlistener("DOMMouseScroll") and "SVGMousewheel" but it does not work
either. I have also tried:
 
document.rootElement.onmousewheel = "sbStartDragVS()"
and
window.onmousewheel = "sbStartDragVS()"
and
document.onmousewheel = "sbStartDragVS()"
 
Although no error is produced, all of these do nothing. These ideas come
from 
here : http://comments.gmane.org/gmane.text.xml.svg.devel/3142
<http://comments.gmane.org/gmane.text.xml.svg.devel/3142> 
and here http://adomas.org/javascript-mouse-wheel/
<http://adomas.org/javascript-mouse-wheel/> 
 
they are interesting web pages but can't get it to work. Another suggestion
is:
 
<svg xmlns="http://www.w3.org/2000/svg <http://www.w3.org/2000/svg> "
xmlns:v="http://schemas.microsoft.com/visio/2003/SVGExtensions/
<http://schemas.microsoft.com/visio/2003/SVGExtensions/> " width="1000"
height="850" viewBox="0 0 1000 850" xml:space="preserve"
color-interpolation-filters="sRGB" class="st23" onmousewheel="alert('hi')">
 
...but also does not work although works in HTML like this: <body
onmousewheel="alert('hi')">
 
The mouse wheel is also discussed on the w3 website:
http://www.w3.org/TR/2005/WD-SVGMobile12-20050413/svgudom.html#events::Wheel
Event
<http://www.w3.org/TR/2005/WD-SVGMobile12-20050413/svgudom.html#events::Whee
lEvent> 
also here
http://www.w3.org/TR/SVGMobile12/svgudom.html#events__WheelEvent
<http://www.w3.org/TR/SVGMobile12/svgudom.html#events__WheelEvent> 
 
Are these referring to future enhancements or are they current? Dunno but I
couldn't get the suggestions there working either.
 
OR Is there a catch all mouse event handler that I could parse for the wheel
action? 
 
Ahhh what should be a simple and standard function is turning out to be very
mysterious! :-<
 

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED]
On Behalf Of Holger Will
Sent: Tuesday, 01 August 2006 1:03 AM
To: [email protected]
Subject: Re: [svg-developers] Re: mousewheel event



hi Michael,

>> well this works for me too as far as firing an event goes
>> but how about something like "wheelDelta" or clientY ?

in mozilla its evt.detail , but dont ask me about the values returned.
the only thing i know is if you scroll up its a positive value, if you 
scroll down its negative.

hth
Holger


 



Australia Post is committed to providing our customers with excellent service. 
If we can assist you in any way please telephone 13 13 18 or visit our website.

The information contained in this e-mail communication may be proprietary, 
confidential or legally professionally privileged.  It is intended exclusively 
for the individual or entity to which it is addressed. You should only read, 
disclose, re-transmit, copy, distribute, act in reliance on or commercialise 
the information if you are authorised to do so. Australia Post does not 
represent, warrant or guarantee the integrity of this e-mail communication has 
been maintained nor that the communication is free of errors, virus or 
interference. 

If you are not the addressee or intended recipient please notify us by replying 
direct to the sender and then destroy any electronic or paper copy of this 
message. Any views expressed in this e-mail communication are taken to be those 
of the individual sender, except where the sender specifically attributes those 
views to Australia Post and is authorised to do so.

[Non-text portions of this message have been removed]



-----
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