From 2e9d5f15f17ab2f57ee534d32bb0ef110e4e8892 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 15 Aug 2023 16:47:56 +0300 Subject: NewStory: fix for slider movement --- plugins/NewStory/src/history_control.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'plugins/NewStory') diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp index 7172ea0ae7..6ffcf45aa2 100644 --- a/plugins/NewStory/src/history_control.cpp +++ b/plugins/NewStory/src/history_control.cpp @@ -1081,14 +1081,11 @@ LRESULT CALLBACK NewstoryListWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM data->ScrollTop(); break; case SB_THUMBTRACK: - { - SCROLLINFO si; - si.cbSize = sizeof(si); - si.fMask = SIF_TRACKPOS | SIF_RANGE; - GetScrollInfo(hwnd, SB_VERT, &si); - data->SetPos(data->totalCount * si.nTrackPos / si.nMax); - data->FixScrollPosition(); - } + SCROLLINFO si; + si.cbSize = sizeof(si); + si.fMask = SIF_TRACKPOS | SIF_RANGE; + GetScrollInfo(hwnd, SB_VERT, &si); + data->EnsureVisible(data->totalCount * si.nTrackPos / si.nMax); break; default: -- cgit v1.2.3