[GREENFOOT-820] Click from actor placement is remembered during first act cycle
Reported by Thomas Karp on Blueroom: {quote}there seem to be a bug when using Greenfoot.mouseClicked(…). A very short example is: {code} public class Fish extends Actor { public void act() { if(Greenfoot.mouseClicked(this)) javax.swing.JOptionPane.showMessageDialog(null, "Hallo"); } } {code}
When I create a fish by right-clicking its class and then run the scenario, “Hallo” appears (most of the time). The click to create the fish seem to be stored. Then everything works like it should. When I create a fish in the world, then run the scenario, everything is fine. But when I create it in the world, after that I click the fish, and than click “Run”, the click event fires again. So it seems to be stored in this case again.
I think a click-event should only be handled after the Run-button is clicked. {quote}
Issue metadata
- Issue type: Bug
- Priority: Medium
- Fix versions: 3.5.3