From f8518eb8c4b921a88bbe0adea823697e03783cd5 Mon Sep 17 00:00:00 2001 From: dbuechel Date: Tue, 27 Aug 2019 10:19:01 +0200 Subject: [PATCH] SEBWIN-141: Removed workaround for initial touch activation of previous browser version. --- SafeExamBrowser.Browser/BrowserControl.cs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/SafeExamBrowser.Browser/BrowserControl.cs b/SafeExamBrowser.Browser/BrowserControl.cs index 26e503db..6902dd01 100644 --- a/SafeExamBrowser.Browser/BrowserControl.cs +++ b/SafeExamBrowser.Browser/BrowserControl.cs @@ -6,7 +6,6 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -using System; using CefSharp; using CefSharp.WinForms; using SafeExamBrowser.Contracts.UserInterface.Browser; @@ -16,8 +15,6 @@ namespace SafeExamBrowser.Browser { internal class BrowserControl : ChromiumWebBrowser, IBrowserControl { - private const uint WS_EX_NOACTIVATE = 0x08000000; - private IContextMenuHandler contextMenuHandler; private IDisplayHandler displayHandler; private IDownloadHandler downloadHandler; @@ -110,18 +107,5 @@ namespace SafeExamBrowser.Browser { GetBrowser().SetZoomLevel(level); } - - /// - /// TODO: This is a workaround due to the broken initial touch activation in version 73.1.130, it must be removed once fixed in CefSharp. - /// See https://github.com/cefsharp/CefSharp/issues/2776 for more information. - /// - protected override IWindowInfo CreateBrowserWindowInfo(IntPtr handle) - { - var windowInfo = base.CreateBrowserWindowInfo(handle); - - windowInfo.ExStyle &= ~WS_EX_NOACTIVATE; - - return windowInfo; - } } }