Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] Slider not responding to taps in iOS 14 #12084

Closed
davidortinau opened this issue Sep 10, 2020 · 3 comments · Fixed by #12883
Closed

[Bug] Slider not responding to taps in iOS 14 #12084

davidortinau opened this issue Sep 10, 2020 · 3 comments · Fixed by #12883
Assignees
Labels
in-progress This issue has an associated pull request that may resolve it! iOS 14 p/iOS 🍎 t/bug 🐛
Milestone

Comments

@davidortinau
Copy link
Contributor

Description

I should be able to tap the track of the slider and see the selection change. This was added in #2476

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="FormsGallery.XamlExamples.SliderDemoPage"
             xmlns:ios="clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core"
             Title="Slider Demo">
    <StackLayout>
        <Label Text="Slider"
               FontSize="50"
               FontAttributes="Bold"
               HorizontalOptions="Center" />
        
        <Slider x:Name="slider"
                 Minimum="0"
                 Maximum="100" 
                 VerticalOptions="CenterAndExpand" />

        <Label Text="{Binding Source={x:Reference slider},
                              Path=Value,
                              StringFormat='Slider value is {0:F1}'}"
               FontSize="Large"
               HorizontalOptions="Center"
               VerticalOptions="CenterAndExpand" />
    </StackLayout>
</ContentPage>

Expected Behavior

Touching the slider track moves the value and drag handler to the tap position. This works in the general settings display brightness on iOS.

Actual Behavior

Touching the slider track doesn't do anything.

Basic Information

  • Version with issue: 5.0.1.1419-nightly
  • IDE:
  • Platform Target Frameworks: iOS 14

Reproduction Link

https://github.com/xamarin/xamarin-forms-samples/blob/master/FormsGallery/FormsGallery/FormsGallery/XamlExamples/SliderDemoPage.xaml

@davidortinau davidortinau added t/bug 🐛 p/iOS 🍎 s/unverified New report that has yet to be verified iOS 14 labels Sep 10, 2020
@samhouts samhouts added this to New in Triage Sep 10, 2020
@StephaneDelcroix StephaneDelcroix removed the s/unverified New report that has yet to be verified label Sep 11, 2020
@StephaneDelcroix StephaneDelcroix moved this from New to Ready For Work in Triage Sep 11, 2020
@jfversluis
Copy link
Member

jfversluis commented Sep 11, 2020

Curious, the Slider in the control gallery seems to work fine on current main

Is it specifically tapping? Because on the Simulator with the cursor it works fine here

Screen Recording 2020-09-11 at 20 40 02

@samhouts samhouts moved this from Ready For Work to Needs Estimate in Triage Sep 14, 2020
@samhouts samhouts added this to the 5.0.0 milestone Sep 15, 2020
@samhouts samhouts added this to To do in vNext+1 (5.0.0) Sep 18, 2020
@samhouts samhouts modified the milestones: 5.0.0, 4.8.0 Sep 30, 2020
@samhouts samhouts added this to To do in vCurrent (4.8.0) Oct 1, 2020
@samhouts samhouts removed this from To do in vNext+1 (5.0.0) Oct 1, 2020
@rmarinho rmarinho added this to To do in vNext+1 (5.0.0) via automation Nov 6, 2020
@rmarinho rmarinho removed this from To do in vCurrent (4.8.0) Nov 6, 2020
@rmarinho rmarinho modified the milestones: 4.8.0, 5.0.0 Nov 6, 2020
@rmarinho rmarinho added this to To do in v5.0.1 via automation Nov 16, 2020
@rmarinho rmarinho removed this from To do in vNext+1 (5.0.0) Nov 16, 2020
@rmarinho rmarinho modified the milestones: 5.0.0, 5.0.1 Nov 16, 2020
@jsuarezruiz
Copy link
Contributor

Missing to use the Platform Specific?
issue12084
#12883

@jsuarezruiz jsuarezruiz added the in-progress This issue has an associated pull request that may resolve it! label Nov 17, 2020
@jsuarezruiz jsuarezruiz self-assigned this Nov 18, 2020
Triage automation moved this from Needs Estimate to Closed Nov 20, 2020
v5.0.1 automation moved this from To do to Done Nov 20, 2020
rmarinho added a commit that referenced this issue Nov 20, 2020
Co-authored-by: Rui Marinho <me@ruimarinho.net>
@EmilAlipiev
Copy link
Contributor

I am not sure why this was closed. but this is very easy to reproduce, if you set the slider with properties like below and once you move to the maximum, on ios, it is not possible to move it again. Should i create a new ticket for this? it surprises me that none else has reported.

<Slider
                           x:Name="slVolume"
                           HorizontalOptions="FillAndExpand"
                           Maximum="10"
                           MaximumTrackColor="Gray"
                           Minimum="0" 
                           MinimumTrackColor="Green"
                           ThumbColor="{DynamicResource bacgroundColor}"
                           ValueChanged="slVolume_ValueChanged"
                           Value="{Binding SpeechVolume, Mode=TwoWay}" />

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
in-progress This issue has an associated pull request that may resolve it! iOS 14 p/iOS 🍎 t/bug 🐛
Projects
No open projects
Triage
  
Closed
Development

Successfully merging a pull request may close this issue.

7 participants