Relative mouse fix on Chromebooks with touchscreens

This commit is contained in:
Steffen_LT
2023-02-25 14:33:36 +01:00
committed by Cameron Gutman
parent 151c09f098
commit 7104e0d725

View File

@@ -44,7 +44,10 @@ public class AndroidNativePointerCaptureProvider extends AndroidPointerIconCaptu
// with SOURCE_TOUCHSCREEN, SOURCE_KEYBOARD, and SOURCE_MOUSE.
// Upon enabling pointer capture, that device will switch to
// SOURCE_KEYBOARD and SOURCE_TOUCHPAD.
if (device.supportsSource(InputDevice.SOURCE_TOUCHSCREEN)) {
// Only skip on non ChromeOS devices cause the ChromeOS pointer else
// gets disabled removing relative mouse capabilities
// on Chromebooks with touchscreens
if (device.supportsSource(InputDevice.SOURCE_TOUCHSCREEN) && !targetView.getContext().getPackageManager().hasSystemFeature("org.chromium.arc.device_management")) {
continue;
}