diff options
| author | Jules Aguillon | 2022-04-02 16:01:48 +0200 |
|---|---|---|
| committer | Jules Aguillon | 2022-04-02 16:16:24 +0200 |
| commit | 2b6c2b98e09ab6eed11c14bc142d6caece769ab8 (patch) | |
| tree | 8b3999b5ca05a2f31e7c87c4645a05bb5bca3ced /.gitignore | |
| parent | 281f779121527c1d8d9136320fcf231422fbdefd (diff) | |
| download | unexpected-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 '.gitignore')
0 files changed, 0 insertions, 0 deletions
