abouttreesummaryrefslogcommitdiff
path: root/res
diff options
context:
space:
mode:
authorJules Aguillon2022-04-02 16:01:48 +0200
committerJules Aguillon2022-04-02 16:16:24 +0200
commit2b6c2b98e09ab6eed11c14bc142d6caece769ab8 (patch)
tree8b3999b5ca05a2f31e7c87c4645a05bb5bca3ced /res
parent281f779121527c1d8d9136320fcf231422fbdefd (diff)
downloadunexpected-keyboard-2b6c2b98e09ab6eed11c14bc142d6caece769ab8.tar.gz
unexpected-keyboard-2b6c2b98e09ab6eed11c14bc142d6caece769ab8.zip
Compute the swipe distance from the physical dpi
The previous computation was very different depending on the device's screen and accessibility options. Given that the keyboard is supposed to fill all the space in one dimension, the dpi unit makes little sense. The formula doesn't mean anything in particular, it takes into account both dimensions (x and y) and should be close to the dpi in the diagonals (which is the direction of swipe). This changes the actual value, on a 1920x1080 480dpi screen, the value is increased by 20%.
Diffstat (limited to 'res')
0 files changed, 0 insertions, 0 deletions