Merged in mmastriani/fractorium_michel (pull request #39)

Added Right click+shift to center the fractal
This commit is contained in:
Michel Mastriani 2020-03-12 12:51:04 +00:00 committed by Matt Feemster
commit 6870de4c7f

View File

@ -891,7 +891,7 @@ void GLEmberController<T>::MousePress(QMouseEvent* e)
m_DragState = eDragState::DragNone;
}
}
else if (e->button() == Qt::MiddleButton)//Middle button does whole image translation.
else if (e->button() == Qt::MiddleButton || (e->button() == Qt::RightButton && e->modifiers() & Qt::ShiftModifier))//Middle button or right button with shift key, do whole image translation.
{
m_CenterDownX = ember->m_CenterX;//Capture where the center of the image is because this value will change when panning.
m_CenterDownY = ember->m_CenterY;