Ok, I see, this is a good approach, Thank you so much,
-----Original Message----- From: Thomas DeWeese [mailto:[EMAIL PROTECTED] Sent: May 6, 2005 2:20 PM To: [email protected] Subject: Re: onzoom and onscroll Benjamin Campin wrote: > The point is that I would like only the onzoomfunct to be called when a user > zoom in the svg. This would not be conformant to the SVG specification. What you are calling a zoom operation is really a zoom and pan operation. You could cache the screenCTM and skip the pan/zoom if the current screenCTM matches the cached CTM (i.e. zoom/pan was already called). > > Benjamin > > -----Original Message----- > From: Thomas DeWeese [mailto:[EMAIL PROTECTED] > Sent: May 6, 2005 1:53 PM > To: [email protected] > Subject: Re: onzoom and onscroll > > Benjamin Campin wrote: > > >>When using the zoomin or zoomout button to zoom in a svg document or >>when zoomin using the ctrl+ (mouse), >> >>both onzoomfunct and onscrollfunct are called. > > >>Is there a way that onscrollfunct is not called when zoom-in or zoom-out >>in the document ? > > > The zoom buttons zoom on the center of the image so there is > a scroll associated with them. If you zoomed from the upper left > you would not get a scroll. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
