Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
Jetpack Compose component(s) used: androidx.compose.material3.Slider
Android Studio Build: #AI-242.23339.11.2421.12550806
Kotlin version: 2.0.0
Steps to Reproduce:
1. Set initial value bigger than the range minimum, e.g. 0.5 for the default range.
2. Tap the thumb in the center so that it does not move.
3. onValueChange is called with the range minimum.
It is hard to tap in the needed position with a finger, the easiest way is to use the device mirroring and click the thumb with a mouse cursor. Always reproduced with 100% probability if clicked in the same position.
Reproduced on Pixel 7 Android 14. Not reproduced on Pixel 8 API 34 emulator.
Reproduced with the simplest Slider:
```
package vm.demo
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.material3.Slider
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableFloatStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContent {
var value by remember { mutableFloatStateOf(0.5f) }
Slider(
value = value,
onValueChange = { value = it },
)
}
}
}
```