Skip to content

Commit

Permalink
Comparison View: Fix wrong horizontal location when dragging starts
Browse files Browse the repository at this point in the history
Use localPos instead of windowPos
  • Loading branch information
magnesj committed Feb 7, 2024
1 parent 8e13d6c commit 163d54f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 163d54f

Please sign in to comment.