diff options
author | Peter Varga <pvarga@inf.u-szeged.hu> | 2023-01-10 09:44:27 +0100 |
---|---|---|
committer | Peter Varga <pvarga@inf.u-szeged.hu> | 2023-01-12 08:04:35 +0000 |
commit | c69b00df8513237dc5a14f399eeb9b6d624d84f3 (patch) | |
tree | 56a1e316138f6782d56c3cf015906fc651923af4 /tools | |
parent | c105706beae51fd785275206061b9fe1303658ed (diff) | |
download | qtwebengine-c69b00df8513237dc5a14f399eeb9b6d624d84f3.tar.gz |
Avoid scaling mouse movement properties on High DPI screens
ui::TranslateAndScaleWebInputEvent() scales movementX/Y if the input
event is not raw.
It is not exactly clear what is the expected behavior and browsers
handle movementX/Y scaling differently. W3C states that
currentEvent.movementX = currentEvent.screenX - previousEvent.screenX
which is not true with scaling.
This is a workaround for https://crbug.com/907309
This fixes tst_QWebEnginePage::mouseMovementProperties auto test with
QT_SCALE_FACTOR=2.
Pick-to: 6.5
Change-Id: I6d1fd591ec2bbeb22c448772c367b59509244491
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions