Skip to content

Touch events in CefSharp.WinForms component hosted in WindowsFormsHost of WPF application. #2338

@dmytroshunkov

Description

@dmytroshunkov
  • What version of the product are you using?
    Install-Package CefSharp.WinForms -Version 63.0.3

  • What architecture x86 or x64?
    x64

  • On what operating system?
    Windows 10

  • Are you using WinForms, WPF or OffScreen?
    I'm using WPF application, but with WindowsFormsHost as this article suggests to get touch support in WPF application.

  • What steps will reproduce the problem?
    I forked CefSharp.MinimalExample and pushed reproducing commit: branch.

Steps:

  1. Start CefSharp.MinimalExample.Wpf application (google.com will open).
  2. Touch google search input field (it will get focus), type something
  3. Click or touch on any control out of WindowsFormsHost (any WPF control, for example address bar at top of window) to browser lost focus.
  4. Again touch google search input field, try to type something.
  5. Browser and input box didn't get focus.
  • What is the expected output? What do you see instead?
    Touch event should focus browser control and input box.

  • Please provide any additional information below.
    To emulate touch events on windows I used Microsoft Windows Simulator (c:\Program Files (x86)\Common Files\microsoft shared\Windows Simulator\15.0). It is a part of Windows SDK. If I'm correct, Universal Windows Platform development component should be installed to get the simulator in this folder.

    • Does the cef log provide any relevant information? (By default there should be a debug.log file in your bin directory)
      No
    • Any other background information that's relevant? Are you doing something out of the ordinary? 3rd party controls?
      No, just WPF minimal example modified with WindowsFormsHost
  • Does this problem also occur in the CEF Sample Application from http://opensource.spotify.com/cefbuilds/index.html?
    Unfortunately, it seems that it reproducible on CEF client. And also I found a very old issue with minor priority. But I'm curious if it can be workarounded with some code (may be proper passing messages in handler). If not, I will create issue there.

    • Version: cef_binary_3.3325.1751.ge5b78a5_windows64_client

Metadata

Metadata

Assignees

No one assigned

    Labels

    upstreamThese issues require fixing in the Chromium Embedded Framework(CEF) or Chromium.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions