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:
@@ -61,7 +61,7 @@ bool RiuComparisonViewMover::eventFilter( QObject* watched, QEvent* event )
|
|||||||
|
|
||||||
if ( m_dragState == LEFT_EDGE )
|
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() };
|
QPointF normMousePos = { mousePos.x() / m_viewer->width(), mousePos.y() / m_viewer->height() };
|
||||||
cvf::Rectf orgCompViewWindow = m_viewer->comparisonViewVisibleNormalizedRect();
|
cvf::Rectf orgCompViewWindow = m_viewer->comparisonViewVisibleNormalizedRect();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user