Unverified Commit c013ba4e authored by Elijah Semyonov's avatar Elijah Semyonov Committed by GitHub

Change sent touches coordinate space to SkikoUIView space (#762)

parent 39fb88f6
...@@ -225,7 +225,7 @@ class SkikoUIView : UIView, UIKeyInputProtocol, UITextInputProtocol { ...@@ -225,7 +225,7 @@ class SkikoUIView : UIView, UIKeyInputProtocol, UITextInputProtocol {
private fun sendTouchEventToSkikoView(event: UIEvent, kind: SkikoPointerEventKind) { private fun sendTouchEventToSkikoView(event: UIEvent, kind: SkikoPointerEventKind) {
val pointers = event.touchesForView(this).orEmpty().map { val pointers = event.touchesForView(this).orEmpty().map {
val touch = it as UITouch val touch = it as UITouch
val (x, y) = touch.locationInView(null).useContents { x to y } val (x, y) = touch.locationInView(this).useContents { x to y }
SkikoPointer( SkikoPointer(
x = x, x = x,
y = y, y = y,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment