r22706 by jghali - Try to make canvas magnifier tool less sensible to unwanted mouse move

scribus-commit scribus-commit at lists.scribus.net
Sat Sep 29 15:38:49 UTC 2018


Author: jghali
Date: Sat Sep 29 15:38:49 2018
New Revision: 22706

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22706
Log:
Try to make canvas magnifier tool less sensible to unwanted mouse move

Modified:
    trunk/Scribus/scribus/canvasmode_magnifier.cpp

Modified: trunk/Scribus/scribus/canvasmode_magnifier.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22706&path=/trunk/Scribus/scribus/canvasmode_magnifier.cpp
==============================================================================
--- trunk/Scribus/scribus/canvasmode_magnifier.cpp	(original)
+++ trunk/Scribus/scribus/canvasmode_magnifier.cpp	Sat Sep 29 15:38:49 2018
@@ -121,7 +121,7 @@
 	m->accept();
 	if (commonMouseMove(m))
 		return;
-	if ((m_canvas->m_viewMode.m_MouseButtonPressed) && (m->buttons() & Qt::LeftButton))
+	if (m_view->moveTimerElapsed() && m_canvas->m_viewMode.m_MouseButtonPressed && (m->buttons() & Qt::LeftButton))
 	{
 		newX = qRound(mousePointDoc.x()); //m_view->translateToDoc(m->x(), m->y()).x());
 		newY = qRound(m_Myp + ((m_SeRx - m_Mxp) * m_view->visibleHeight()) / m_view->visibleWidth());




More information about the scribus-commit mailing list