Commit ab02f862 authored by Leander Schulten's avatar Leander Schulten
Browse files

Fix Scroll Bug with Windows

parent 906d0226
......@@ -526,9 +526,13 @@ void ChannelProgrammEditor::keyPressEvent(QKeyEvent *event){
}
void ChannelProgrammEditor::wheelEvent(QWheelEvent *event){
#ifdef Q_OS_WIN
xDiff = event->angleDelta().y();
#else
xDiff = event->pixelDelta().x();
#endif
event->accept();
qDebug()<<"wheel : "<<event->pixelDelta().x()<<'\n';
qDebug()<<"wheel : "<<event->pixelDelta()<<' '<<event->angleDelta()<<' '<<event->delta()<<'\n';
update();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment