Don't consume wxEVT_STC_UPDATEUI in wxStyledTextCtrlMiniMap Insert a call to `event.Skip()` at the start of `wxStyledTextCtrlMiniMap::OnEditUpdate` so the event continues its propagation. Closes #25940. Signed-off-by: Eran Ifrah <er...@codelite.org>
Fix a small typo in wxStyledTextCtrlMiniMap comment No real changes.
| ... | ... | @@ -544,6 +544,9 @@ void wxStyledTextCtrlMiniMap::OnEditPaint(wxPaintEvent& event) |
| 544 | 544 | |
| 545 | 545 | void wxStyledTextCtrlMiniMap::OnEditUpdate(wxStyledTextEvent& event)
|
| 546 | 546 | {
|
| 547 | + // Let other handlers process this event in any case.
|
|
| 548 | + event.Skip();
|
|
| 549 | + |
|
| 547 | 550 | if ( event.GetUpdated() & wxSTC_UPDATE_V_SCROLL )
|
| 548 | 551 | {
|
| 549 | 552 | auto const editFirst = m_edit->GetFirstVisibleLine();
|
| ... | ... | @@ -563,7 +566,7 @@ void wxStyledTextCtrlMiniMap::OnEditUpdate(wxStyledTextEvent& event) |
| 563 | 566 | SyncSelection();
|
| 564 | 567 | |
| 565 | 568 | // Note that we don't need to refresh the map for wxSTC_UPDATE_CONTENT
|
| 566 | - // changes, as Scintilla already refreshs it on its own when the shared
|
|
| 569 | + // changes, as Scintilla already refreshes it on its own when the shared
|
|
| 567 | 570 | // document contents change.
|
| 568 | 571 | }
|
| 569 | 572 |
—
View it on GitLab.
You're receiving this email because of your account on gitlab.com. Manage all notifications · Help