material-components-android icon indicating copy to clipboard operation
material-components-android copied to clipboard

[Slider] Inactive track part draws when it shouldn't anymore

Open Pittvandewitt opened this issue 1 year ago • 0 comments
trafficstars

Description: The inactive track part of Slider doesn't respect trackInsideCornerSize, causing drawing artefacts to occur. With the default trackInsideCornerSize, this translates to drawing when it shouldn't anymore. At its minimum size it looks like the thumbTrackGapSize isn't respected but this is not actually the case. When using a bigger trackInsideCornerSize, this bug becomes clearly visible.

Expected behavior:

https://github.com/material-components/material-components-android/assets/1721405/1b12f725-90b9-475d-bc85-e5181a893766

Current behavior:

https://github.com/material-components/material-components-android/assets/1721405/9801537b-b779-419b-ac43-0319eb2a0b1d

Source code: The code snippet which is causing this issue

Minimal sample app repro: The current catalog app

Android API version: Android API 34

Material Library version: 1.12.0-alpha03

Device: Pixel 7

Pittvandewitt avatar Feb 22 '24 15:02 Pittvandewitt