Skip to content

Commit

Permalink
Revert "[qtmozembed] Use CSS pixels for touch coordinates. Fixes JB#4…
Browse files Browse the repository at this point in the history
…9810"

This reverts commit e3862e42b39c96692b0ff3cd2ffdd635c5babf3c.
  • Loading branch information
rainemak authored and abranson committed May 11, 2020
1 parent 0c02f45 commit d406061
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qmozview_p.cpp
Expand Up @@ -578,8 +578,8 @@ mozilla::embedlite::TouchPointF QMozViewPrivate::createEmbedTouchPoint(qreal pos
offset = renderingOffset();
}

return mozilla::embedlite::TouchPointF((posX - offset.x())/QMozEngineSettings::instance()->pixelRatio(),
(posY - offset.y())/QMozEngineSettings::instance()->pixelRatio());
return mozilla::embedlite::TouchPointF(posX - offset.x(),
posY - offset.y());
}

QPointF QMozViewPrivate::renderingOffset() const
Expand Down

0 comments on commit d406061

Please sign in to comment.