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:
parent
ce948c3a92
commit
1ce8b52927
1 changed files with 5 additions and 5 deletions
|
@ -41,10 +41,10 @@ module.exports = function ScalingServiceFactory() {
|
||||||
* | | 0deg | 90deg | 180deg | 270deg |
|
* | | 0deg | 90deg | 180deg | 270deg |
|
||||||
* |--------------|------|---------|---------|---------|
|
* |--------------|------|---------|---------|---------|
|
||||||
* | CSS rotate() | 0deg | -90deg | -180deg | 90deg |
|
* | CSS rotate() | 0deg | -90deg | -180deg | 90deg |
|
||||||
* | bounding w | w | h | w | h |
|
* | bounding w | w | h | w | h |
|
||||||
* | bounding h | h | w | h | w |
|
* | bounding h | h | w | h | w |
|
||||||
* | pos x | x | h-y | w-x | y |
|
* | pos x | x | h-y | w-x | y |
|
||||||
* | pos y | y | x | h-y | x |
|
* | pos y | y | x | h-y | h-x |
|
||||||
* |--------------|------|---------|---------|---------|
|
* |--------------|------|---------|---------|---------|
|
||||||
*/
|
*/
|
||||||
return {
|
return {
|
||||||
|
@ -74,7 +74,7 @@ module.exports = function ScalingServiceFactory() {
|
||||||
w = boundingH
|
w = boundingH
|
||||||
h = boundingW
|
h = boundingW
|
||||||
x = relY
|
x = relY
|
||||||
y = relX
|
y = boundingW - relX
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue