Commit f78812d 1 parent 5e249f8 commit f78812d Copy full SHA for f78812d
File tree 1 file changed +4
-4
lines changed
ios/sdk/WeexSDK/Sources/Events
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -234,10 +234,10 @@ - (void)onClick:(__unused UITapGestureRecognizer *)recognizer
234
234
235
235
if (!CGRectEqualToRect (self.calculatedFrame , CGRectZero )) {
236
236
CGRect frame = [self .view.superview convertRect: self .calculatedFrame toView: self .view.window];
237
- position[@" x" ] = @(frame.origin .x );
238
- position[@" y" ] = @(frame.origin .y );
239
- position[@" width" ] = @(frame.size .width );
240
- position[@" height" ] = @(frame.size .height );
237
+ position[@" x" ] = @(frame.origin .x / WXScreenResizeRadio () );
238
+ position[@" y" ] = @(frame.origin .y / WXScreenResizeRadio () );
239
+ position[@" width" ] = @(frame.size .width / WXScreenResizeRadio () );
240
+ position[@" height" ] = @(frame.size .height / WXScreenResizeRadio () );
241
241
}
242
242
243
243
[self fireEvent: @" click" params: @{@" position" :position}];
You can’t perform that action at this time.
0 commit comments