Should not scroll if dy is 0
This commit is contained in:
parent
0a87194d38
commit
c32ff31516
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ bool MousepadPlugin::receivePackage(const NetworkPackage& np)
|
|||
if (dy < 0) {
|
||||
XTestFakeButtonEvent(m_display, MouseWheelDown, true, CurrentTime);
|
||||
XTestFakeButtonEvent(m_display, MouseWheelDown, false, CurrentTime);
|
||||
} else {
|
||||
} else if (dy > 0) {
|
||||
XTestFakeButtonEvent(m_display, MouseWheelUp, true, CurrentTime);
|
||||
XTestFakeButtonEvent(m_display, MouseWheelUp, false, CurrentTime);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue