fredsa / gwt-dnd

Library providing easy to use mouse or touch based drag-and-drop capabilities to GWT
42 stars 41 forks source link

static.context.draggable is null exception in $dragMove() #90

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm using GWT 1.6.4

gwt-dnd 1.5.6 and 1.6.5?

Windows XP

Occures in both Firefox and IE web mode?

I'm using gwt-dnd to move some elements in canvas, and I also have a slider
to zoom in and zoom out elements. Knob in the slider is also draggable
object. Sometimes when I move the knob very fast, and then click on it and
try to move it again, I get exception:

this$static.context.draggable is null
$dragMove(com.allen_sauer.gwt.dnd.client.PickupDragController@2cb)572442D7...ach
e.html
(wiersz 1140)
dragMove()572442D7...ache.html (wiersz 1290)
$actualMove(com.allen_sauer.gwt.dnd.client.MouseDragHandler@2d2, 357,
254)572442D7...ache.html (wiersz 892)
$execute(com.allen_sauer.gwt.dnd.client.DeferredMoveCommand@2d3)572442D7...ache.
html
(wiersz 184)
execute()572442D7...ache.html (wiersz 204)
$doExecuteCommands(com.google.gwt.user.client.CommandExecutor@2e3,
1252320774416)572442D7...ache.html (wiersz 12222)
run_5()572442D7...ache.html (wiersz 12319)
$fireImpl(com.google.gwt.user.client.CommandExecutor$2@2e8)572442D7...ache.html
(wiersz 3465)
fire_2()572442D7...ache.html (wiersz 3486)
anonymous()572442D7...ache.html (wiersz 3480)
[Break on this error] desiredLeft = max_0(0,
min_0(desired....context.draggable.getOffsetWidth()));\r\n

the line 1140 in $dragMove() couse the problem:

desiredLeft = max_0(0, min_0(desiredLeft, this$static.dropTargetClientWidth
- this$static.context.draggable.getOffsetWidth())); 

Original issue reported on code.google.com by phob...@gmail.com on 7 Sep 2009 at 11:19

GoogleCodeExporter commented 9 years ago
I'll assume that this is fixed as of gwt-dnd-3.0.0 (which needs at least GWT 
2.0)

Please let me know if that's not the case.

Original comment by fredsa on 16 Oct 2009 at 7:49