improved responsiveness of playfield scrolling in editor
[rocksndiamonds.git] / src / editor.c
index 89e82bceb61db1673d07add0a97b864cbccf29b8..632810d3f2b3fd854475aeb5e39cb12177983d3e 100644 (file)
@@ -11475,12 +11475,18 @@ static void HandleControlButtons(struct GadgetInfo *gi)
 
     case GADGET_ID_SCROLL_HORIZONTAL:
       level_xpos = gi->event.item_position - 1;
+
       DrawEditorLevel(ed_fieldx, ed_fieldy, level_xpos, level_ypos);
+      BackToFront();
+
       break;
 
     case GADGET_ID_SCROLL_VERTICAL:
       level_ypos = gi->event.item_position - 1;
+
       DrawEditorLevel(ed_fieldx, ed_fieldy, level_xpos, level_ypos);
+      BackToFront();
+
       break;
 
     case GADGET_ID_SCROLL_LIST_UP: