Redirect mouse wheel events when STC autocomp is active
While an autocompletion list is being shown, a native Scintilla window will use mouse wheel events to scroll the list instead of the editor window. Match this behavior with wxSTC by intercepting mouse wheel events and redirecting them to the list.
This commit is contained in:
@@ -2701,7 +2701,7 @@ wxSTCListBox::wxSTCListBox(wxWindow* parent, wxSTCListBoxVisualData* v, int ht)
|
||||
m_textTopGap(0), m_imageAreaWidth(0), m_imageAreaHeight(0)
|
||||
{
|
||||
wxVListBox::Create(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize,
|
||||
wxBORDER_NONE);
|
||||
wxBORDER_NONE, "AutoCompListBox");
|
||||
|
||||
m_imagePadding = FromDIP(1);
|
||||
m_textBoxToTextGap = FromDIP(3);
|
||||
|
Reference in New Issue
Block a user