summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-08-15 16:47:56 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-08-15 16:47:56 +0300
commit2e9d5f15f17ab2f57ee534d32bb0ef110e4e8892 (patch)
treea7797d8bd3f923419179a6cb726f5c1ca9750bb0 /plugins
parentbc50ea79aabf2b4b770e58a101340933e619136f (diff)
NewStory: fix for slider movement
Diffstat (limited to 'plugins')
-rw-r--r--plugins/NewStory/src/history_control.cpp13
1 files changed, 5 insertions, 8 deletions
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: