[GREENFOOT-764] Editor does not always scroll to follow cursor
With the following code in a Java editor:
size the window so it shows 19 lines of code
scroll to the top and position the cursor at the end of the first line
quickly press the down arrow key more than 19 times.
note the cursor "moves off the bottom" of the window which does not scroll.
{code:java} import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) public class MyworldJ extends World { public MyworldJ() {
// Create a new world with 600x400 cells with a cell size of 1x1 pixels.
super(600, 400, 1);
prepare();
if (true) {
}
}
private void prepare()
{
Bird bird = new Bird();
addObject(bird,447,150);
Bird bird2 = new Bird();
addObject(bird2,177,149);
Bird bird3 = new Bird();
addObject(bird3,87,308);
Bird bird4 = new Bird();
addObject(bird4,332,250);
}
}
{code}
Issue metadata
- Issue type: Task
- Priority: Medium