diff options
author | George Hazan <george.hazan@gmail.com> | 2024-10-01 14:39:59 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-10-01 14:39:59 +0300 |
commit | c5866000711953d0b970c6fe649dab811ba00e4b (patch) | |
tree | ed3adcdbca7e73c0dfe0607789959e6fc3d3d235 /plugins | |
parent | db2c4624aa67bc73729e6f26a13ececf111f0d9e (diff) |
fixes #4707 (NewStory: при клике на ссылку позиция скроллинга перелетает на начало сообщения)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/NewStory/src/history_control.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp index 7b95412522..4b2082582d 100644 --- a/plugins/NewStory/src/history_control.cpp +++ b/plugins/NewStory/src/history_control.cpp @@ -1440,18 +1440,16 @@ LRESULT CALLBACK NewstoryListWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM if (wParam & MK_CONTROL) {
data->ToggleSelection(idx, idx);
- data->SetCaret(idx);
+ data->SetCaret(idx, false);
}
else if (wParam & MK_SHIFT) {
data->AddSelection(data->caret, idx);
- data->SetCaret(idx);
+ data->SetCaret(idx, false);
}
else {
- pt.y -= pItem->savedTop;
-
data->selStart = idx;
data->SetSelection(idx, idx);
- data->SetCaret(idx);
+ data->SetCaret(idx, false);
}
}
SetFocus(hwnd);
|