You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Benjamin Campin <bc...@dbxgeomatics.com> on 2005/05/06 19:36:19 UTC
onzoom and onscroll
Hi all,
With Squiggle 1.6,
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.
<svg onzoom="onzoomfunct(evt)" onscroll="onscrollfunct(evt)" >
</svg>
Is there a way that onscrollfunct is not called when zoom-in or zoom-out in
the document ?
Benjamin
RE: onzoom and onscroll
Posted by Benjamin Campin <bc...@dbxgeomatics.com>.
Ok, I see, this is a good approach,
Thank you so much,
-----Original Message-----
From: Thomas DeWeese [mailto:Thomas.DeWeese@Kodak.com]
Sent: May 6, 2005 2:20 PM
To: batik-users@xmlgraphics.apache.org
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:Thomas.DeWeese@Kodak.com]
> Sent: May 6, 2005 1:53 PM
> To: batik-users@xmlgraphics.apache.org
> 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: batik-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
Re: onzoom and onscroll
Posted by Thomas DeWeese <Th...@Kodak.com>.
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:Thomas.DeWeese@Kodak.com]
> Sent: May 6, 2005 1:53 PM
> To: batik-users@xmlgraphics.apache.org
> 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: batik-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
RE: onzoom and onscroll
Posted by Benjamin Campin <bc...@dbxgeomatics.com>.
The point is that I would like only the onzoomfunct to be called when a user
zoom in the svg.
Benjamin
-----Original Message-----
From: Thomas DeWeese [mailto:Thomas.DeWeese@Kodak.com]
Sent: May 6, 2005 1:53 PM
To: batik-users@xmlgraphics.apache.org
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: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
Re: onzoom and onscroll
Posted by Thomas DeWeese <Th...@Kodak.com>.
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: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org