Bug 602837 - Pinch doesn't care about orientation. r=romaxa a=blocking-fennec

This commit is contained in:
Tatiana Meshkova 2010-10-09 09:14:57 +03:00
parent f06b6d9784
commit 7123aa0e2c

View File

@ -1838,7 +1838,9 @@ nsWindow::OnGestureEvent(QGestureEvent* event, PRBool &handled) {
QPinchGesture* pinch = static_cast<QPinchGesture*>(gesture);
handled = PR_TRUE;
nsIntPoint centerPoint(pinch->centerPoint().x(), pinch->centerPoint().y());
QPointF mappedCenterPoint =
mWidget->mapFromScene(event->mapToGraphicsScene(pinch->centerPoint()));
nsIntPoint centerPoint(mappedCenterPoint.x(), mappedCenterPoint.y());
if (pinch->state() == Qt::GestureStarted) {
event->accept();