Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bea505e1 authored by Yongshun Liu's avatar Yongshun Liu
Browse files

a11y: Throttle onMouseMove in MagnificationController

This change introduces a 300ms throttle to the onMouseMove event
handler in MagnificationController. This prevents the handler from
being called too frequently during rapid mouse movements, which can
cause performance degradation.

New unit tests are added to verify that events are correctly
rate-limited and that they are processed again after the throttle
period has passed.

Bug: 424272057
Flag: EXEMPT bugfix
Test: atest MagnificationControllerTest
Test: atest IMagnificationConnectionTest
Change-Id: I79d959631963612d861333f708dccf193529beac
parent 388f0cd6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment