Skip to content

Focus Mate v1.1.2 — scroll wheel off-by-one fix + editor range fix

Choose a tag to compare

@hellogunawan99 hellogunawan99 released this 12 Jun 19:39

Fixes in v1.1.2

  • Off-by-one in scroll wheel centering. When the value was at wheel.min (5), the wheel was highlighting the next value (6) in the center because the first item sat at the top of the visible area, not the center. Fix: added vertical padding so the first item is centered. Now value=5 displays 5 in the center.
  • Editor clamp range too narrow. The 'custom' edit dialog was clamping to wheel.min (5), so users couldn't type 2 or 3 minute test intervals. Fix: wheel display range (5-120) and editor range (1-240) are now separate. Type any value 1-240 in the editor.

New widget tests in test/interval_wheel_test.dart cover both bugs.