UE4
Topic Author
Posts: 62
Joined: 29 Dec 2017, 06:32

IsHitTestVisible has no effect?

22 Feb 2018, 09:32

Hi, I create a UserControl, for touch input, I set the 2nd Ellipse's IsHitTestVisible to false, but sesms no effect, the first Ellipse can not revice TouchDown event, when I touch down 2nd Ellipse
<UserControl x:Class="GameGUI.VirtualJoystick"
             x:Name="VirtualJoystickControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:GameGUI"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Canvas x:Name="CanvasPanel" HorizontalAlignment="Center" VerticalAlignment="Center" RenderTransformOrigin="0.5,0.5" Margin="150">
        <Ellipse x:Name="UIBackground" Fill="#FF1E9119" Height="300" Width="300" Canvas.Left="0" Canvas.Top="0" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="-150,-150,4,0" RenderTransformOrigin="0.5,0.5"/>
        <Ellipse x:Name="Thumb" Fill="#FFBD3D3D" Width="100" Height="100" Canvas.Left="{Binding ThumbOffset.X}" Canvas.Top="{Binding ThumbOffset.Y}" IsHitTestVisible="False" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="-50,-50,0,0" RenderTransformOrigin="0.5,0.5" />
    </Canvas>
</UserControl>
 
nokola
Posts: 188
Joined: 10 Mar 2015, 05:29

Re: IsHitTestVisible has no effect?

23 Feb 2018, 05:25

It's a bug in WPF that Noesis is keeping for compatibility. http://www.noesisengine.com/forums/sear ... estvisible
I think there should be an option to run Noesis with the bug fix. Or just fix it. :)
 
User avatar
sfernandez
Site Admin
Posts: 2991
Joined: 22 Dec 2011, 19:20

Re: IsHitTestVisible has no effect?

23 Feb 2018, 14:03

It's a bug in WPF that Noesis is keeping for compatibility. http://www.noesisengine.com/forums/sear ... estvisible
I think there should be an option to run Noesis with the bug fix. Or just fix it.
The problem described by UE4 is a different thing from what we were discussing in BETA: NoesisGUI v2.1.0rc3 topic.
Touch events should be aware of IsHitTestVisible property and skip those elements.

This is a bug in our touch implementation, I was able to reproduce it.
Could you please report it in our bugtracker?
 
UE4
Topic Author
Posts: 62
Joined: 29 Dec 2017, 06:32

Re: IsHitTestVisible has no effect?

24 Feb 2018, 04:08

I added to bugtracker just now.

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Semrush [Bot] and 34 guests