-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Application doesn't respond to touch events in split window mode on iPad #3100
Application doesn't respond to touch events in split window mode on iPad #3100
Comments
Same thing happens when the app is launched in full-screen mode and then switched into a slide over window. |
It seems like Compose always assumes that the window is at (0, 0). The left split view works well and on the left slide over mode, the buttons that are slightly off from the touch position are pressed. |
It seems not. I edited SkikoUIView.kt as follows, but the results of private fun sendTouchEventToSkikoView(event: UIEvent, kind: SkikoPointerEventKind) {
val pointers = event.touchesForView(this).orEmpty().map {
val touch = it as UITouch
val (x, y) = touch.locationInView(null).useContents { x to y }
val (viewRelativeX, viewRelativeY) = touch.locationInView(this).useContents { x to y }
println("Skiko: Touch Event at ($x, $y), relative = ($viewRelativeX, $viewRelativeY)") |
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks. |
Describe the bug
When the application is being run in a split view mode in iPad, it responds to touches only when being launched in the left pane. When it's dragged to the right pane, it stops responding. Though if a physical keyboard is connected, it doesn't loose focus and you can continue typing.
IMG_0034.MOV
Affected platforms
Versions
To Reproduce
The text was updated successfully, but these errors were encountered: