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

[Bug] TouchEffect causes View's stuck if PressedAnimationDuration is set, but NormalAnimationDuration isn't #974

@gaurakshay

Description

@gaurakshay

Hi!

I am trying to understand the difference between TouchEffect.AnimationDuration and TouchEffect.PressedAnimationDuration.

The markup below works fine:

<Frame CornerRadius="30"
       Padding="30, 5"
       HorizontalOptions="CenterAndExpand"
       VerticalOptions="CenterAndExpand"
       xct:TouchEffect.PressedScale="0.9"
       xct:TouchEffect.AnimationDuration="100"
       xct:TouchEffect.AnimationEasing="CubicInOut"
       HasShadow="False"
       BackgroundColor="#0178D4"
       >
    <Grid ColumnDefinitions="Auto, Auto">
        <Label Text="AnimationDuration" FontSize="28" TextColor="White" Padding="0, 10"/>
        <Label Grid.Column="1" Text="&#xf054;" FontFamily="FASolid" FontSize="28" Margin="0,5,0,0" Padding="20,10,0,0" TextColor="White"/>
    </Grid>
</Frame>

However, the markup below causes the animation to be "stuck"

<Frame CornerRadius="30"
       Padding="30, 5"
       HorizontalOptions="CenterAndExpand"
       VerticalOptions="CenterAndExpand"
       xct:TouchEffect.PressedScale="0.9"
       xct:TouchEffect.PressedAnimationDuration="100"
       xct:TouchEffect.AnimationEasing="CubicInOut"
       HasShadow="False"
       BackgroundColor="#0178D4"
       >
    <Grid ColumnDefinitions="Auto, Auto">
        <Label Text="AnimationDuration" FontSize="28" TextColor="White" Padding="0, 10"/>
        <Label Grid.Column="1" Text="&#xf054;" FontFamily="FASolid" FontSize="28" Margin="0,5,0,0" Padding="20,10,0,0" TextColor="White"/>
    </Grid>
</Frame>
SM.G930U.2021-02-24.17-27-24.mp4

Please see the attached screen capture where the button looks like it is stuck when pressed.

I feel like this is more of a misunderstanding on my part rather than a bug which is why I didn't report this as a bug.

Metadata

Metadata

Labels

a/TouchEffectbugSomething isn't working. Breaky break.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions