Don't eat mouse wheel events if we can't handle them in wxGTK.
The recent changes to mouse wheel scrolling broke it for the generic wxListCtrl and probably any other situation in which scrollbars don't scroll the window itself but some subwindow of it. In this case, the scroll wheel event handler doesn't have any scrollbar to adjust, so it simply does nothing and shouldn't return true, as it did since r74911. Just return false in case we are not doing anything to let the mouse wheel work as before. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75193 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -578,6 +578,10 @@ All (GUI):
|
|||||||
|
|
||||||
- Fix crash when setting invalid label ending with "&" (ZaneUJi).
|
- Fix crash when setting invalid label ending with "&" (ZaneUJi).
|
||||||
|
|
||||||
|
wxGTK:
|
||||||
|
|
||||||
|
- Fix mouse wheel scrolling in wxListCtrl broken just before 3.0.0.
|
||||||
|
|
||||||
|
|
||||||
3.0.0: (released 2013-11-11)
|
3.0.0: (released 2013-11-11)
|
||||||
----------------------------
|
----------------------------
|
||||||
|
@@ -1723,6 +1723,9 @@ scroll_event(GtkWidget* widget, GdkEventScroll* gdk_event, wxWindow* win)
|
|||||||
|
|
||||||
if (!win->GTKProcessEvent(event))
|
if (!win->GTKProcessEvent(event))
|
||||||
{
|
{
|
||||||
|
if (!range)
|
||||||
|
return false;
|
||||||
|
|
||||||
if (direction == GDK_SCROLL_UP || direction == GDK_SCROLL_LEFT)
|
if (direction == GDK_SCROLL_UP || direction == GDK_SCROLL_LEFT)
|
||||||
step = -step;
|
step = -step;
|
||||||
AdjustRangeValue(range, step);
|
AdjustRangeValue(range, step);
|
||||||
|
Reference in New Issue
Block a user