1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-06 03:50:04 +02:00

Fix touch coordinates in 270deg rotation.

This commit is contained in:
Simo Kinnunen 2014-10-29 12:30:46 +09:00
parent ce948c3a92
commit 1ce8b52927

View file

@ -44,7 +44,7 @@ module.exports = function ScalingServiceFactory() {
* | bounding w | w | h | w | h |
* | bounding h | h | w | h | w |
* | pos x | x | h-y | w-x | y |
* | pos y | y | x | h-y | x |
* | pos y | y | x | h-y | h-x |
* |--------------|------|---------|---------|---------|
*/
return {
@ -74,7 +74,7 @@ module.exports = function ScalingServiceFactory() {
w = boundingH
h = boundingW
x = relY
y = relX
y = boundingW - relX
break
}