git-svn-id: svn://db.shs.com.ru/libs@523 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -204,6 +204,7 @@ void Graphic::procGesture(QGesture * g) {
|
|||||||
if (!g) return;
|
if (!g) return;
|
||||||
switch (g->gestureType()) {
|
switch (g->gestureType()) {
|
||||||
case Qt::PanGesture: {
|
case Qt::PanGesture: {
|
||||||
|
if (need_mouse_pan) break;
|
||||||
QPanGesture * pg = (QPanGesture*)g;
|
QPanGesture * pg = (QPanGesture*)g;
|
||||||
QPointF dp = -pg->delta();
|
QPointF dp = -pg->delta();
|
||||||
dp.rx() /= getScaleX();
|
dp.rx() /= getScaleX();
|
||||||
|
|||||||
Reference in New Issue
Block a user