Page 1 of 1

TextBlock.Tapped does not fire under Safari

Posted: Thu Oct 20, 2016 9:35 am
by rkmore
The "Tapped" event of a "TextBlock" does not fire under Safari on an iPhone.

Super simple example below. On any browser but Safari works as expected. On Safari only the PointerPressed event fires, not the Tapped event.

Code: Select all

<Page
    x:Class="AppleTest.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:AppleTest"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">
    <StackPanel>
        <TextBlock Text="Target Block" FontSize="22" Background="LightBlue" Tapped="TextBlock_Tapped" PointerPressed="TextBlock_PointerPressed" />
        <TextBlock x:Name="textBlock1" Text="Not Tapped" />
        <TextBlock x:Name="textBlock2" Text="Not Pressed" />
    </StackPanel>
</Page>


Code: Select all

namespace AppleTest
{
    public partial class MainPage : Page
    {
        public MainPage()
        {
            this.InitializeComponent();

            // Enter construction logic here...
        }

        private void TextBlock_Tapped(object sender, Windows.UI.Xaml.Input.TappedRoutedEventArgs e)
        {
            textBlock1.Text = "Tapped !!";

        }

        private void TextBlock_PointerPressed(object sender, Windows.UI.Xaml.Input.PointerRoutedEventArgs e)
        {
            textBlock2.Text = "Pressed !!";

        }
    }
}

Re: TextBlock.Tapped does not fire under Safari

Posted: Tue Oct 25, 2016 12:27 am
by JS-Support @Userware
Thanks. We are going to fix it asap.

Regards,
JS-Support