Skip to content
Permalink
Browse files

Fix scrolling in wrong direction when using mouse wheel in filebrowser,

  • Loading branch information
heckflosse committed Nov 27, 2018
1 parent 6ba989e commit d06e26356b625a19be32eef03def59e99afffffa
Showing with 4 additions and 0 deletions.
  1. +4 −0 rtgui/thumbbrowserbase.cc
@@ -76,6 +76,10 @@ void ThumbBrowserBase::scroll (int direction, double deltaX, double deltaY)
} else {
delta = deltaY;
}
if (direction == GDK_SCROLL_SMOOTH && delta == 0.0) {
// sometimes this case happens. To avoid scrolling the wrong direction in this case, we just do nothing
return;
}
double coef = direction == GDK_SCROLL_DOWN || (direction == GDK_SCROLL_SMOOTH && delta > 0.0) ? +1.0 : -1.0;

// GUI already acquired when here

0 comments on commit d06e263

Please sign in to comment.
You can’t perform that action at this time.