Gabriel95 / scalafx

Automatically exported from code.google.com/p/scalafx
Other
0 stars 0 forks source link

DragEvent.gestureTarget returns gestureSource #82

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use this line of code in a drag event handler:

    if (event.gestureSource != event.gestureTarget)

What is the expected output? What do you see instead?

... is always false. It should only be false when the source and target are the 
same.

What version of the product are you using? On what operating system?

ScalaFX 1.0.0 M4 on OS/X 10.6.8

Please provide any additional information below.

Line 106 in the M6 source code for scalafx.scene.input.DragEvent looks like 
this:

    def gestureTarget : Object = delegate.getGestureSource

It should look like this:

    def gestureTarget : Object = delegate.getGestureTarget

Original issue reported on code.google.com by richard....@richj.org on 13 Sep 2013 at 8:58

GoogleCodeExporter commented 8 years ago
Thanks for pointing this out and locating responsible code.

The fix is now available in scalafx-1.0.0-M6-SNAPSHOT and 
scalafx-8.0.0-M2-SNAPSHOT.

Original comment by jpsacha on 16 Sep 2013 at 3:54