fix dup wheel events on x11
This commit is contained in:
parent
490eae7814
commit
380a13ef83
|
@ -672,14 +672,18 @@ void X11Window::poll()
|
|||
m_inputEvent.mouseButton = Fw::MouseMidButton;
|
||||
break;
|
||||
case Button4:
|
||||
if(event.type == ButtonPress) {
|
||||
m_inputEvent.type = Fw::MouseWheelInputEvent;
|
||||
m_inputEvent.mouseButton = Fw::MouseMidButton;
|
||||
m_inputEvent.wheelDirection = Fw::MouseWheelUp;
|
||||
}
|
||||
break;
|
||||
case Button5:
|
||||
if(event.type == ButtonPress) {
|
||||
m_inputEvent.type = Fw::MouseWheelInputEvent;
|
||||
m_inputEvent.mouseButton = Fw::MouseMidButton;
|
||||
m_inputEvent.wheelDirection = Fw::MouseWheelDown;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
m_inputEvent.type = Fw::NoInputEvent;
|
||||
|
|
Loading…
Reference in New Issue