diff options
author | Neil <nyamatongwe@gmail.com> | 2024-07-10 08:26:36 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2024-07-10 08:26:36 +1000 |
commit | 85ca24bcdbfc2fb8d303646e5bd207b5b229b351 (patch) | |
tree | 523baa6adaa5af2de12c2d69f774bc928a92e68a /src/Editor.cxx | |
parent | ed0aed7dc463ee5c0f2b7c0989e231cce2c835b8 (diff) | |
download | scintilla-mirror-85ca24bcdbfc2fb8d303646e5bd207b5b229b351.tar.gz |
Bug [#2443]. Fix flickering cursor after some mouse action sequences.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r-- | src/Editor.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 12150dcda..e39ab622c 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -5186,7 +5186,12 @@ void Editor::TickFor(TickReason reason) { break; case TickReason::scroll: // Auto scroll - ButtonMoveWithModifiers(ptMouseLast, 0, KeyMod::Norm); + if (HaveMouseCapture()) { + ButtonMoveWithModifiers(ptMouseLast, 0, KeyMod::Norm); + } else { + // Capture cancelled so cancel timer + FineTickerCancel(TickReason::scroll); + } break; case TickReason::widen: SetScrollBars(); |