a7c9ca99f3be7733dfc1c12fb07956e354fdad3c — Chris Waldon 5 months ago f77bf9a
widget/material: make ScrollBarStyle.MajorMinLen default to FingerSize

Egon pointed out that the current default is unusable on touch screens in Slack, so this
change should hopefully ensure the indicator is interactable on touch devices.

I considered expanding the minor axis dimensions as well, but I don't know what value to
use. The 38DP default would be enormous on non-mobile displays if we made that the default

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
1 files changed, 1 insertions(+), 1 deletions(-)

M widget/material/list.go
M widget/material/list.go => widget/material/list.go +1 -1
@@ 93,7 93,7 @@ func Scrollbar(th *Theme, state *widget.Scrollbar) ScrollbarStyle {
			MinorPadding: 2,
		Indicator: ScrollIndicatorStyle{
			MajorMinLen:  8,
			MajorMinLen:  th.FingerSize,
			MinorWidth:   6,
			CornerRadius: 3,
			Color:        lightFg,