Bug 1625925 Part 1: Change touch-simulator.js synthesizeNative methods to use screen...
commit9d266c9a3ffcf7c5a0a273902efb77b5b9c78bd4
authorBrad Werth <bwerth@mozilla.com>
Mon, 13 Jul 2020 20:39:52 +0000 (13 20:39 +0000)
committerBrad Werth <bwerth@mozilla.com>
Mon, 13 Jul 2020 20:39:52 +0000 (13 20:39 +0000)
tree63ee03f68d0f617165e02c86edf177500a71193f
parente2a46cc21191275b4e33b1cf6d478d17edea3fe0
Bug 1625925 Part 1: Change touch-simulator.js synthesizeNative methods to use screen coordinates directly. r=botond

This removes the calculation method coordinatesRelativeToScreen in favor of
using the event-supplied screen coordinates. Those coordinates are scaled to
device coordinates to meet expectations of the sendNative methods.

Differential Revision: https://phabricator.services.mozilla.com/D74161
devtools/server/actors/emulation/touch-simulator.js