dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22k stars 1.72k forks source link

iOS-specific Slider.UpdateOnTab doesn't work #20098

Open TimLandskron opened 7 months ago

TimLandskron commented 7 months ago

Description

When setting the iOS:Slider.UpdateOnTap="True" to true the slider should update its value when tapping somewhere on the slider. With the attached reproduction repository this functionality does not seem to work.

Steps to Reproduce

  1. Download the reproduction repository here.
  2. Compile & run the solution.
  3. Try to tap on the slider somewhere other than the thumb.

Expected behavior: The slider updates its value.

Actual Behavior: The slider does not update its value.

Link to public reproduction project repository

https://github.com/TimLandskron/SliderUpdateOnTapIssue

Version with bug

8.0.6

Is this a regression from previous behavior?

Yes, this used to work in Xamarin.Forms

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

iOS 15

Did you find any workaround?

No known workaround.

Relevant log output

No response

jfversluis commented 7 months ago

@kubaflo thanks for looking into this for us! I'm not sure if I understand correctly though. This issue speaks about a Slider, I don't see a slider on your screenshot? So I don't understand how it's relevant?

Also one thing to consider is that its noted that this worked on Xamarin.Forms. If that's the case, we should at least investigate what is going on and how to move forward on this.

kubaflo commented 7 months ago

@jfversluis sorry this was supposed to be a comment for this issue: https://github.com/dotnet/maui/issues/20015

kubaflo commented 7 months ago

@jfversluis I'm also working on this one and I will easily fix this OS-specific Slider.UpdateOnTap bug

kubaflo commented 7 months ago

@jfversluis @TimLandskron here it is: https://github.com/dotnet/maui/pull/20124