Touch position mismatch in split screen (Android)
Opened this issue · 0 comments
thequver commented
Describe the bug
I'm using egui (0.32) + egui_winit + egui_wgpu.
On Android, when using split-screen feature in an egui app, the visible content doesn't match the touch position. This happens because the app is running fullscreen, but in split-screen mode the android top bar is always visible, offsetting the visible ui content, but touch events still occur as if the app was running in fullscreen mode.
To Reproduce
Steps to reproduce the behavior:
- Expand your android egui app to fullscreen (hide the system topbar)
- Test the app, the buttons should click where you place your finger
- Switch to split screen mode. The app is now displayed at half size, the top bar is visible
- The ui is now shifted down by the size of the top bar. Taps cause misses
Expected behavior
Touch events are accurate regardless of the visibility of the android top bar
Smartphone (please complete the following information):
- Device: Samsung Galaxy A52 5G
- OS: Android 14