From 3408c1119f9bbf367b326596102675397e108005 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 21 Oct 2022 11:45:00 +0200 Subject: [PATCH] dialog:: automatically move list_skip --- dialogs.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dialogs.cpp b/dialogs.cpp index 2584dd60..2d80dc26 100644 --- a/dialogs.cpp +++ b/dialogs.cpp @@ -658,6 +658,11 @@ EX namespace dialog { draw_list_slider(dcenter + fwidth / 2 - dfsize/2, list_starts_at); if(mousex >= dcenter + fwidth /2 - dfsize && mousey >= list_starts_at && mousey < list_ends_at) getcstat = PSEUDOKEY_LIST_SLIDER, inslider = true, slider_x = mousey; + if(list_left > 0) { + list_skip -= list_left; + list_skip -= list_more_skip; + if(list_skip < 0) list_skip = 0; + } continue; }