diff --git a/DroidFish/res/values/strings.xml b/DroidFish/res/values/strings.xml
index 70b5ebb..5f1ee82 100644
--- a/DroidFish/res/values/strings.xml
+++ b/DroidFish/res/values/strings.xml
@@ -306,6 +306,8 @@ you are not actively using the program.\
Scrolling speed for game navigation
Invert Scroll Direction
Enable this if you think scrolling moves in the wrong direction
+ Auto scroll move list
+ Automatically scroll the move list to the current board position
Discard variations
Discard non-mainline moves from move list
Left-handed mode
diff --git a/DroidFish/res/xml/preferences.xml b/DroidFish/res/xml/preferences.xml
index 36d92c8..caa23be 100644
--- a/DroidFish/res/xml/preferences.xml
+++ b/DroidFish/res/xml/preferences.xml
@@ -521,6 +521,12 @@
android:summary="@string/prefs_invertScrollDirection_summary"
android:defaultValue="false">
+
+
= 0) {
+ if (line >= 0 && autoScrollMoveList) {
int y = (line - 1) * moveList.getLineHeight();
moveListScroll.scrollTo(0, y);
}