-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modules: lvgl: Fix coordinate handling for invert-{x,y} and swap-xy
This patch fixes two issue in the coordinate handling of the `zephyr,lvgl-pointer-input` compatible: - If the swap-xy flag is set the coordinates need to be swapped even before the sync event is received. - If the invert-{x,y} property is set the coordinates should only be inverted when the state is pressed. This is because the pointer saves the coordinates of a previous press event and upon release event it reuses them, causing the inversion to be applied twice. Resolves issue #70539. Signed-off-by: Fabian Blatz <fabianblatz@gmail.com>
- Loading branch information
Showing
1 changed file
with
53 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters