diff options
author | Zufu Liu <unknown> | 2022-09-30 09:31:14 +1000 |
---|---|---|
committer | Zufu Liu <unknown> | 2022-09-30 09:31:14 +1000 |
commit | 64a090697a4ce072addd4f9ea6aadca5f6cd9a86 (patch) | |
tree | 40d05651f18cef26f20b9ec1565f7bd3a0077b4d | |
parent | f35107b93b04e080b66e32dbc68688b9431c8364 (diff) | |
download | scintilla-mirror-64a090697a4ce072addd4f9ea6aadca5f6cd9a86.tar.gz |
Bug [#2357]. Make SCI_LINESCROLL more accurate when width of space not integer.
-rw-r--r-- | doc/ScintillaHistory.html | 4 | ||||
-rw-r--r-- | src/Editor.cxx | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index e1dc99479..079095ae0 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -598,6 +598,10 @@ Enlarge point and point top indicators and scale to be larger with larger text. </li> <li> + Make SCI_LINESCROLL more accurate when width of space not integer. + <a href="https://sourceforge.net/p/scintilla/bugs/2357/">Bug #2357</a>. + </li> + <li> On Win32 implement horizontal scrolling mouse wheel. <a href="https://sourceforge.net/p/scintilla/feature-requests/1450/">Feature #1450</a>. </li> diff --git a/src/Editor.cxx b/src/Editor.cxx index 32a63f14a..97c141bae 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -6242,7 +6242,7 @@ sptr_t Editor::WndProc(Message iMessage, uptr_t wParam, sptr_t lParam) { case Message::LineScroll: ScrollTo(topLine + lParam); - HorizontalScrollTo(xOffset + static_cast<int>(wParam) * static_cast<int>(vs.spaceWidth)); + HorizontalScrollTo(xOffset + static_cast<int>(static_cast<int>(wParam) * vs.spaceWidth)); return 1; case Message::SetXOffset: |