sony / flutter-embedded-linux

Embedded Linux embedding for Flutter
BSD 3-Clause "New" or "Revised" License
1.16k stars 123 forks source link

Fix cursor hotspot for scale factors different than 1 #311

Closed vially closed 1 year ago

vially commented 1 year ago

The previous logic contained a bug related to the cursor hotspot coordinates which made the cursor "jump" around when entering and leaving the window surface (see screen recordings below).

before.webm

after.webm

This pull-request fixes that by dividing the hotspot by the scaling factor.

Note: I agree to delegate all rights related to this PR to Sony.