[
https://issues.apache.org/jira/browse/BATIK-1039?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ken Lee updated BATIK-1039:
---------------------------
Description:
When using JSVGCanvas in SWT by using the SWT_AWT bridge, the mouse cursor is
often not changed correctly, e.g. it is supposed to change its form from a
default pointer to a hand cursor but it does not.
It seems that this behavior is somehow related to the position of the
application window. If the window is resized and moved around, depending on the
position of the window the mouse cursor is sometimes changed correctly and
sometimes not.
There's a sample Maven project showing the described problem. The SVG file is
taken from
http://www.w3.org/Graphics/SVG/Test/20110816/harness/htmlObject/interact-cursor-01-f.html.
When hovering over the crosshair rectangle, the mouse cursor should change to
a crosshair cursor, etc. This does work in a pure Swing application correctly,
but not if the JSVGCanvas is bridged in SWT.
was:
When using JSVGCanvas in SWT by using the SWT_AWT bridge, the mouse cursor is
often not changed correctly, e.g. it is supposed to change its form from a
default pointer to a hand cursor but it does not.
It seems that this behavior is somehow related to the position of the
application window. If the window is resized and moved around, depending on the
position of the window the mouse cursor is sometimes changed correctly and
sometimes not.
> Mouse Cursor is not changed correctly when using JSVGCanvas in SWT
> ------------------------------------------------------------------
>
> Key: BATIK-1039
> URL: https://issues.apache.org/jira/browse/BATIK-1039
> Project: Batik
> Issue Type: Bug
> Affects Versions: 1.7
> Environment: Windows 7
> Reporter: Ken Lee
> Priority: Minor
> Attachments: swt-svg-example.zip
>
>
> When using JSVGCanvas in SWT by using the SWT_AWT bridge, the mouse cursor is
> often not changed correctly, e.g. it is supposed to change its form from a
> default pointer to a hand cursor but it does not.
> It seems that this behavior is somehow related to the position of the
> application window. If the window is resized and moved around, depending on
> the position of the window the mouse cursor is sometimes changed correctly
> and sometimes not.
> There's a sample Maven project showing the described problem. The SVG file is
> taken from
> http://www.w3.org/Graphics/SVG/Test/20110816/harness/htmlObject/interact-cursor-01-f.html.
> When hovering over the crosshair rectangle, the mouse cursor should change
> to a crosshair cursor, etc. This does work in a pure Swing application
> correctly, but not if the JSVGCanvas is bridged in SWT.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]