Fix mouse wheel not working in 3D view if a plot window is created.

Fix issue with multiplot sometimes being shown incorrectly when switching between fullscreen plots
This commit is contained in:
Jon Jenssen
2022-03-30 15:54:11 +02:00
committed by jonjenssen
parent 64d35859a7
commit 2eb1713866
4 changed files with 51 additions and 16 deletions

View File

@@ -869,7 +869,5 @@ void RimMultiPlot::cleanupBeforeClose()
bool RimMultiPlot::isMouseCursorInsidePlot()
{
if ( !m_viewer ) return false;
QPoint curpos = m_viewer->mapFromGlobal( QCursor::pos() );
return ( m_viewer->rect().contains( curpos ) );
return m_viewer->underMouse();
}