mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Comparison View: Fix wrong horizontal location when dragging starts
Use localPos instead of windowPos
This commit is contained in:
parent
8e13d6c528
commit
163d54fb24
@ -61,7 +61,7 @@ bool RiuComparisonViewMover::eventFilter( QObject* watched, QEvent* event )
|
||||
|
||||
if ( m_dragState == LEFT_EDGE )
|
||||
{
|
||||
QPointF mousePos = mEv->windowPos();
|
||||
QPointF mousePos = mEv->localPos();
|
||||
QPointF normMousePos = { mousePos.x() / m_viewer->width(), mousePos.y() / m_viewer->height() };
|
||||
cvf::Rectf orgCompViewWindow = m_viewer->comparisonViewVisibleNormalizedRect();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user