Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'jb49810' into 'esr52'
Revert "[qtmozembed] Use CSS pixels for touch coordinates. Fixes JB#49810"

See merge request mer-core/qtmozembed!58
  • Loading branch information
rainemak authored and abranson committed May 11, 2020
2 parents 0c02f45 + d406061 commit 5ac13d3
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 5ac13d3

Please sign in to comment.