HeliBoard icon indicating copy to clipboard operation
HeliBoard copied to clipboard

Slider settings change to minimum value on first tap

Open eranl opened this issue 7 months ago • 6 comments

When you edit any slider setting, your first tap on the slider, no matter where you touch it, causes it to change to its minimum value. Subsequent taps work correctly.

Happy to fix this, but need guidance.

App version Commit f4b4705e.

Device:

  • Model: google pixel 7a
  • OS: Android 15 (manufacturer's OS)

eranl avatar Apr 06 '25 22:04 eranl

Can't reproduce, it works normally for me. Was it always like that with the new settings?

Helium314 avatar Apr 07 '25 15:04 Helium314

Just checked with v2.3, and it works fine.

eranl avatar Apr 07 '25 22:04 eranl

I meant with the new settings, i.e. starting with 3.0.

Happy to fix this, but need guidance.

My only idea so far is investigating what's happening when you change the value of the slider in SliderDialog. Maybe the value changes twice initially?

Helium314 avatar Apr 08 '25 15:04 Helium314

Apparently, a known bug.

eranl avatar Apr 08 '25 18:04 eranl

Apparently, a known bug.

Unfortunately that's only that the bug exists, no further information, especially no reply to "Could you provide what your onValueChange is doing?" (which is a bit more generic than "Maybe the value changes twice initially?").

Helium314 avatar Apr 13 '25 07:04 Helium314

This (pressOffset being zero) is exactly what I saw in the debugger.

eranl avatar Apr 13 '25 13:04 eranl

I can't reproduce this any longer. Maybe fixed in some Compose version.

eranl avatar Nov 15 '25 21:11 eranl

There was no update on the linked bug report... let's hope it really was a compose issue that's fixed now.

Helium314 avatar Nov 17 '25 07:11 Helium314