diff options
author | George Hazan <george.hazan@gmail.com> | 2023-12-18 19:57:32 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-12-18 19:57:32 +0300 |
commit | d55a3af1146afccfd6a6637f0c7ae0bf54d5f3d0 (patch) | |
tree | 67548baca46e70aa8846c110b843ff5bddb92a76 | |
parent | a7c2ce2ee4b54a5e8a219743bdcd289b723347a6 (diff) |
fixes #4066 (NewStory: Новая проблема со скроллингом)
-rw-r--r-- | plugins/NewStory/src/history_control.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp index b495a3ac06..f6221fbbd8 100644 --- a/plugins/NewStory/src/history_control.cpp +++ b/plugins/NewStory/src/history_control.cpp @@ -521,7 +521,7 @@ void NewstoryListData::HitTotal(int yCurr, int yTotal) while (i < totalCount && y > 0) { auto *pItem = GetItem(i++); if (!pItem->m_bLoaded) { - i = (totalCount * yCurr) / yTotal; + i = totalCount * (double(yCurr) / double(yTotal)); y = 0; break; } |