Skip to content

[GREENFOOT-530] Frame cursor positioning for mouse click not always right

Create an if-frame at the bottom of a method. Try clicking just one pixel above the bottom border of the if-frame. The nearest frame cursor, which should be focused, is the one after the if-frame, just inside the method. But instead, the cursor in the empty body of the if-frame gets focused. This makes it hard to select the cursor just after the if-frame.

There seems to be similar problems if you click just inside the bottom of the method frame. I think the algorithm isn't right for the gap between the last canvas and the end of the frame, or there is a clicked/released issue; sometimes you get a flash of animation of the cursor disappearing before the same cursor gets focused.


Issue metadata

  • Issue type: Bug
  • Priority: Low
  • Fix versions: 3.0.3