You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ac...@apache.org on 2017/06/07 10:04:51 UTC
[2/4] incubator-weex git commit: * [ios] remove unused line
* [ios] remove unused line
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/9dda8068
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/9dda8068
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/9dda8068
Branch: refs/heads/0.14-dev
Commit: 9dda80689006ecdc586ae37c375d61947ca46935
Parents: 4368ec2
Author: acton393 <zh...@gmail.com>
Authored: Fri Jun 2 16:45:46 2017 +0800
Committer: acton393 <zh...@gmail.com>
Committed: Fri Jun 2 16:45:46 2017 +0800
----------------------------------------------------------------------
ios/sdk/WeexSDK/Sources/Events/WXComponent+Events.m | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/9dda8068/ios/sdk/WeexSDK/Sources/Events/WXComponent+Events.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Events/WXComponent+Events.m b/ios/sdk/WeexSDK/Sources/Events/WXComponent+Events.m
index 86ef164..98a27b7 100644
--- a/ios/sdk/WeexSDK/Sources/Events/WXComponent+Events.m
+++ b/ios/sdk/WeexSDK/Sources/Events/WXComponent+Events.m
@@ -761,8 +761,8 @@ if ([removeEventName isEqualToString:@#eventName]) {\
}
NSDictionary *resultTouch = [_component touchResultWithScreenLocation:screenLocation pageLocation:pageLocation identifier:touch.wx_identifier];
NSMutableDictionary * mutableResultTouch = [resultTouch mutableCopy];
+
if (WX_SYS_VERSION_GREATER_THAN_OR_EQUAL_TO(@"9.0")) {
- NSLog(@"touch force: %lf, maximum:%lf", touch.force, touch.maximumPossibleForce);
float value = touch.force*60;
float maxValue = touch.maximumPossibleForce*60;
if (touch.maximumPossibleForce) {
@@ -771,7 +771,6 @@ if ([removeEventName isEqualToString:@#eventName]) {\
}else {
[mutableResultTouch setObject:[NSNumber numberWithFloat:0.0] forKey:@"force"];
}
-
}
[resultTouches addObject:mutableResultTouch];