JDK-8119003 : Image Viewport and mouse events.
  • Type: Bug
  • Component: javafx
  • Sub-Component: scenegraph
  • Affected Version: fx2.0
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2011-10-13
  • Updated: 2015-06-17
  • Resolved: 2011-10-20
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
fx2.0.2Fixed
Related Reports
Blocks :  
Description
If I set a viewport (with x and y coordinates greater than 0)  to an image, I can receive mouse events until imageview width less viewport x coordinate and imageview height less viewport y coordinate. If x and y coordinates are equals to 0, there is no problem.
In the attached file there is the part of code necessary to reproduce this issue.
Comments
verified in 2.0.2 b08
11-11-2011

Both issues fixed by changeset b2ad7a9082af.
20-10-2011

Indeed the hit test wrongly handles the viewport's coordinates. Along the way I discovered one more issue: if the viewport sticks out of the image bounds, the image receives the events on the place where there is the viewport, but not the image. This needs to be fixed as well.
20-10-2011