mirror of
https://github.com/bbara04/Purefin.git
synced 2026-07-23 19:26:50 +00:00
Refactor brightness drag to use a normal 0-1 sliding range with a sticky auto-brightness zone at the bottom. Enter/exit auto mode via hysteresis thresholds (15% overshoot past 0%) so accidental drags don't toggle the mode. Lock the current system brightness on screen open (reading the actual value even when in auto mode) and restore the original window brightness on ON_STOP. Add vertical drag lifecycle callbacks (start/end) to PlayerGesturesLayer so overshoot can be reset per gesture. Extract drag handlers into local functions for readability.