[GREENFOOT-272] setLocation called too often when dragging objects
Report from Joe Bergin:
"I think there may be a design flaw in greenfoot, though I don't know all of the implications.
When you use the mouse to drag an Actor about, setLocation(x, y) keeps getting fired for each cell that is encountered. This is probably to simulate a sort of dragging visualization, but it has an unintended side effect when setLocation is overridden, as all of the new functionality is executed for each cell over which the actor moves. Perhaps it would be better if setLocation is fired only when the mouse is released and a different mechanism be used for dragging feedback.
I think he's right \- it should fire only once at the end.
- Issue type: Bug
- Priority: Low
- Fix versions: 2.0