#68 auto scroll patch

Kevin Li

here is a patch for implementing auto-scrolling (map will scroll if you move the mouse to the edge of the screen). the feature is a boolean option that is available from the startup options screen under display.

majority of actual code is in the CanvasMouseMotionListener and the equivalent class for the MapEditor. Code has been refactored slightly.

This should be the final version unless further functionality is added. It could use more comments but it is fairly self explanatory.

attached is the patch that implements the function to the latest build.


  • Kevin Li

    Kevin Li - 2009-03-19

    patch to freecol for autoscrolling

  • Michael Vehrs

    Michael Vehrs - 2009-03-21

    Thanks for the patch, which I have committed. Don't forget to update the classic and testing specification when modifying specification.xml.

  • Michael Vehrs

    Michael Vehrs - 2009-03-21
    • status: open --> closed-accepted

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks