Skip to content

Commit

Permalink
[qtmozembed] Use CSS pixels for touch coordinates. Fixes JB#49810
Browse files Browse the repository at this point in the history
  • Loading branch information
rainemak authored and abranson committed May 11, 2020
1 parent 90c7f6f commit adf9455
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(),
posY - offset.y());
return mozilla::embedlite::TouchPointF((posX - offset.x())/QMozEngineSettings::instance()->pixelRatio(),
(posY - offset.y())/QMozEngineSettings::instance()->pixelRatio());
}

QPointF QMozViewPrivate::renderingOffset() const
Expand Down

0 comments on commit adf9455

Please sign in to comment.