提交 4ea7075c 编写于 作者: N najeira 提交者: Chris Bracken

Map iOS touches to Flutter view coordinate system (#4425)

This change ensures that touches are mapped to the Flutter view
co-ordinate system. In the case of a Flutter view that doesn't share the
same origin and orientation as the screen co-ordinate system, touches
were appled in the wrong location. This bug affected Flutter views whose
origin was not the screen origin and Flutter apps running with the
in-call status bar on iPhones other than the iPhone X.
上级 6c6b709b
......@@ -483,7 +483,7 @@ static inline blink::PointerData::DeviceKind DeviceKindFromTouchType(UITouch* to
}
FXL_DCHECK(device_id != 0);
CGPoint windowCoordinates = [touch locationInView:nil];
CGPoint windowCoordinates = [touch locationInView:self.view];
blink::PointerData pointer_data;
pointer_data.Clear();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册