Skip to content

Commit bb5b60b

Browse files
committed
WPF Example - Disable Stylus and Touch Support
1 parent 5fa61c5 commit bb5b60b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CefSharp.Wpf.Example/App.xaml.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ public partial class App : Application
1313
{
1414
protected override void OnStartup(StartupEventArgs e)
1515
{
16+
System.AppContext.SetSwitch("Switch.System.Windows.Input.Stylus.DisableStylusAndTouchSupport", true);
17+
1618
#if DEBUG
1719
if (!System.Diagnostics.Debugger.IsAttached)
1820
{
@@ -43,4 +45,4 @@ protected override void OnStartup(StartupEventArgs e)
4345
base.OnStartup(e);
4446
}
4547
}
46-
}
48+
}

0 commit comments

Comments
 (0)