highgui module: window_QT mouse wheel reuse variable delta instead call evnt->delta()
This commit is contained in:
parent
4e63bd04e5
commit
179998a8a2
@ -2637,7 +2637,7 @@ void DefaultViewPort::wheelEvent(QWheelEvent* evnt)
|
||||
icvmouseHandler(evnt, mouse_wheel, cv_event, flags);
|
||||
icvmouseProcessing(QPoingF(pt), cv_event, flags);
|
||||
|
||||
scaleView(evnt->delta() / 240.0, pt);
|
||||
scaleView(delta / 240.0, pt);
|
||||
viewport()->update();
|
||||
|
||||
QWidget::mouseWheel(evnt);
|
||||
|
Loading…
x
Reference in New Issue
Block a user