Fixed bug in dragging behavior.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3197 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Andrzej Kapolka
2004-11-02 02:40:27 +00:00
parent a6ffa4dd01
commit da4bbd524c
@@ -1,5 +1,5 @@
// //
// $Id: CardPanel.java,v 1.6 2004/11/02 01:44:32 andrzej Exp $ // $Id: CardPanel.java,v 1.7 2004/11/02 02:40:27 andrzej Exp $
// //
// Narya library - tools for developing networked games // Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved // Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
@@ -244,8 +244,6 @@ public abstract class CardPanel extends VirtualMediaPanel
} }
public void mouseDragged (MouseEvent me) public void mouseDragged (MouseEvent me)
{ {
mouseMoved(me);
if (_activeSprite instanceof CardSprite && if (_activeSprite instanceof CardSprite &&
((CardSprite)_activeSprite).isDraggable()) { ((CardSprite)_activeSprite).isDraggable()) {
_activeSprite.setLocation( _activeSprite.setLocation(
@@ -253,6 +251,8 @@ public abstract class CardPanel extends VirtualMediaPanel
me.getY() + _handleY me.getY() + _handleY
); );
_hasBeenDragged = true; _hasBeenDragged = true;
} else {
mouseMoved(me);
} }
} }
}; };