summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-10-15 14:52:07 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-10-15 14:52:07 +0300
commitce5f827f32e3efcf852cf91091706d59e0151a84 (patch)
tree17a1e1768b0be51b5c7305b382481acf017c9fe8
parent6e6bc248a3ce5ffbcd3196431789413a178e3bf6 (diff)
fixes #3734 (NewStory: разная скорость прокрутки в разных направлениях)
-rw-r--r--plugins/NewStory/src/history_control.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp
index bfc51147f2..6e69fcb521 100644
--- a/plugins/NewStory/src/history_control.cpp
+++ b/plugins/NewStory/src/history_control.cpp
@@ -744,7 +744,7 @@ void NewstoryListData::ScrollDown(int deltaY)
for (int i = scrollTopItem + 1; i < totalCount; i++) {
iHeight = GetItemHeight(i);
if (iHeight > deltaY) {
- scrollTopPixel = deltaY - iHeight;
+ scrollTopPixel = -deltaY;
scrollTopItem = i;
bFound = true;
break;