]> Shamusworld >> Repos - architektonas/blobdiff - src/actions/rs_actionzoompan.cpp
Fixed preview rendering for ActionDrawLine...
[architektonas] / src / actions / rs_actionzoompan.cpp
index 2066442bd361d8277e9340785a1a4ed92f99e876..e4ce07afef8e813f1e2ee97c309e933d4f6f5e06 100644 (file)
@@ -43,13 +43,17 @@ void RS_ActionZoomPan::trigger()
        }
 }
 
+#define SCROLL_DELTA 4
 void RS_ActionZoomPan::mouseMoveEvent(QMouseEvent * e)
 {
        x2 = e->x();
        y2 = e->y();
 
 //This is where we see if the delta was big enough to warrant a redraw...
-       if (getStatus() == 1 && (abs(x2 - x1) > 7 || abs(y2 - y1) > 7))
+//Dunno if this is needed anymore, the Qt rendering pipeline should be able to
+//hang with this...
+//     if (getStatus() == 1 && (abs(x2 - x1) > 7 || abs(y2 - y1) > 7))
+       if (getStatus() == 1 && (abs(x2 - x1) > SCROLL_DELTA || abs(y2 - y1) > SCROLL_DELTA))
                trigger();
 }