@@ -61,11 +62,11 @@ class Draggable extends StatefulComponent {
}
class_DraggableStateextendsState<Draggable>{
DragRoute_route;
_DragAvatar_avatar;
void_startDrag(PointerInputEventevent){
if(_route!=null)
return;// TODO(ianh): once we switch to using gestures, just hand the gesture to the route so it can do everything itself. then we can have multiple drags at the same time.
if(_avatar!=null)
return;// TODO(ianh): once we switch to using gestures, just hand the gesture to the avatar so it can do everything itself. then we can have multiple drags at the same time.
finalPointpoint=newPoint(event.x,event.y);
PointdragStartPoint;
switch(config.dragAnchor){
...
...
@@ -78,39 +79,38 @@ class _DraggableState extends State<Draggable> {