Commit de1dce05 authored by Ralf Habacker's avatar Ralf Habacker

Fix wheel event position issue after selecting widgets on linux.

After selecting a widget with visible scroll bars the scene position
was not in sync with mouse pointer position.

CCBUG:358097
parent 334d8488
......@@ -158,11 +158,7 @@ void UMLView::wheelEvent(QWheelEvent* event)
// adjust to the new center for correct zooming
QPointF newCenter = mapToScene(viewport()->rect().center()) + offset;
bool oldState1 = verticalScrollBar()->blockSignals(true);
bool oldState2 = horizontalScrollBar()->blockSignals(true);
centerOn(newCenter);
verticalScrollBar()->blockSignals(oldState1);
horizontalScrollBar()->blockSignals(oldState2);
centerOn(newCenter);
UMLApp::app()->setZoom(zoom(), false);
}
......
Markdown is supported
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