From 1ce8b52927a68d2059fda4814830176127d2c29a Mon Sep 17 00:00:00 2001 From: Simo Kinnunen Date: Wed, 29 Oct 2014 12:30:46 +0900 Subject: [PATCH] Fix touch coordinates in 270deg rotation. --- .../components/stf/screen/scaling/scaling-service.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/res/app/components/stf/screen/scaling/scaling-service.js b/res/app/components/stf/screen/scaling/scaling-service.js index ecf61668..2252d5e9 100644 --- a/res/app/components/stf/screen/scaling/scaling-service.js +++ b/res/app/components/stf/screen/scaling/scaling-service.js @@ -41,10 +41,10 @@ module.exports = function ScalingServiceFactory() { * | | 0deg | 90deg | 180deg | 270deg | * |--------------|------|---------|---------|---------| * | CSS rotate() | 0deg | -90deg | -180deg | 90deg | - * | 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 | + * | 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 | h-x | * |--------------|------|---------|---------|---------| */ return { @@ -74,7 +74,7 @@ module.exports = function ScalingServiceFactory() { w = boundingH h = boundingW x = relY - y = relX + y = boundingW - relX break }