mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 602837 - Pinch doesn't care about orientation. r=romaxa a=blocking-fennec
This commit is contained in:
parent
f06b6d9784
commit
7123aa0e2c
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user