Should not scroll if dy is 0

This commit is contained in:
Albert Vaca 2014-06-29 17:52:07 +02:00
parent 0a87194d38
commit c32ff31516

View file

@ -77,7 +77,7 @@ bool MousepadPlugin::receivePackage(const NetworkPackage& np)
if (dy < 0) { if (dy < 0) {
XTestFakeButtonEvent(m_display, MouseWheelDown, true, CurrentTime); XTestFakeButtonEvent(m_display, MouseWheelDown, true, CurrentTime);
XTestFakeButtonEvent(m_display, MouseWheelDown, false, CurrentTime); XTestFakeButtonEvent(m_display, MouseWheelDown, false, CurrentTime);
} else { } else if (dy > 0) {
XTestFakeButtonEvent(m_display, MouseWheelUp, true, CurrentTime); XTestFakeButtonEvent(m_display, MouseWheelUp, true, CurrentTime);
XTestFakeButtonEvent(m_display, MouseWheelUp, false, CurrentTime); XTestFakeButtonEvent(m_display, MouseWheelUp, false, CurrentTime);
} }