TextBlock.Tapped does not fire under Safari

Please post public support tickets here. Note: for private support tickets, please send an email to support@cshtml5.com instead.
rkmore
Posts: 55
Joined: Mon Dec 07, 2015 1:53 pm

TextBlock.Tapped does not fire under Safari

Postby rkmore » Thu Oct 20, 2016 9:35 am

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 !!";

        }
    }
}

JS-Support @Userware
Site Admin
Posts: 1142
Joined: Tue Apr 08, 2014 3:42 pm

Re: TextBlock.Tapped does not fire under Safari

Postby JS-Support @Userware » Tue Oct 25, 2016 12:27 am

Thanks. We are going to fix it asap.

Regards,
JS-Support


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 27 guests

 

 

cron