Bug 391029 - Remote control cursor sensitivity is not consistent for different DPI
Summary: Remote control cursor sensitivity is not consistent for different DPI
Status: RESOLVED FIXED
Alias: None
Product: kdeconnect
Classification: Applications
Component: android-application (show other bugs)
Version: unspecified
Platform: Android Android 7.x
: NOR normal
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-25 01:58 UTC by Jonathan Doman
Modified: 2018-07-21 11:32 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Doman 2018-02-25 01:58:03 UTC
KDE Connect v1.7.1, installed from play store
Phone: Samsung Galaxy S8

Observed Behavior:
When the device's resolution (pixel density) is increased, the remote control cursor sensitivity also increases. Then I have to adjust the plugin settings to decrease sensitivity to get a consistent experience.

Expected Behavior:
Ideally the app should transmit a constant cursor movement for a constant length input from the touchscreen (i.e. cursor movement should be based on centimeters rather than pixels).

This is a really minor issue for me - just thought I'd report it in case it's an easy fix.
Comment 1 Nicolas Fella 2018-03-02 14:37:44 UTC
To be clear, are you refering to the dpi of the phone screen or the desktop screen?
Comment 2 Jonathan Doman 2018-03-02 16:22:23 UTC
Phone screen. I did not change any settings on the desktop.
Comment 3 Nicolas Fella 2018-07-21 11:32:43 UTC
Git commit 212069c42528b5a6fa68a17d08fbb3f1609f5e07 by Nicolas Fella, on behalf of Chansol Yang.
Committed on 21/07/2018 at 11:32.
Pushed by nicolasfella into branch 'master'.

Make remote input sensitivity consistant across device DPIs

Summary:
KDEConnect's Remote Input feature does not take display DPI into account, resulting in inconsistent mouse sensitivities for devices with different DPIs.
This revision aims to fix that by dividing the mouse delta with the relative DPI of the current device. By doing so, the same amount of finger movement should produce the same amount of cursor movement, regardless of the device's DPI.

Addresses the following bug:

Reviewers: #kde_connect, nicolasfella

Reviewed By: #kde_connect, nicolasfella

Subscribers: sredman, nicolasfella, kdeconnect

Tags: #kde_connect

Differential Revision: https://phabricator.kde.org/D13925

M  +10   -1    src/org/kde/kdeconnect/Plugins/MousePadPlugin/MousePadActivity.java

https://commits.kde.org/kdeconnect-android/212069c42528b5a6fa68a17d08fbb3f1609f5e07