I'm currently developing and Wpf-Application with DotNetBrowser library.
So the target is a kiosk software.
I do have to use the BrowserType.HEAVYWEIGHT type cause our webapp which is loaded with the control only works correctly with this type. On lightweight mode I capture the touch events but then also events are triggered while swyping our webapp. But back to the problem:
<code>
Browser browser = BrowserFactory.Create(BrowserContext.DefaultContext, BrowserType.HEAVYWEIGHT);
m_BrowserView = new WPFBrowserView(browser);
</code>
I do have two touch event handlers
<code>
private void OnTouchUp(object sender, TouchEventArgs e)
{
Console.WriteLine("Touch up");
base.OnTouchUp(e);
}</code>
and
<code>
private void OnTouchDown(object sender, TouchEventArgs e)
{
Console.WriteLine("Touch down");
base.OnTouchDown(e);
}
</code>
I registered those two methods on the constructor of the MainWindow neither
<code>
TouchUp += OnTouchUp;
TouchDown += OnTouchDown;
</code>
nor
<code>
m_BrowserView.TouchUp += OnTouchUp;
m_BrowserView.TouchDown += OnTouchDown;
</code>
forced the application to enter my touch methods
DotNetBrowser: 1.8.4 WPF: 4.5.2 OS: Windows 10