Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WPF - JavaScript DragEnd event not emitted #4801

Open
1 task done
WilliamTomOBrien opened this issue May 13, 2024 · 1 comment
Open
1 task done

WPF - JavaScript DragEnd event not emitted #4801

WilliamTomOBrien opened this issue May 13, 2024 · 1 comment

Comments

@WilliamTomOBrien
Copy link

Is there an existing issue for this?

  • I have searched both open/closed issues, no issue already exists.

CefSharp Version

124.3.50.0

Operating System

Windows 11

Architecture

x64

.Net Version

4.7.2

Implementation

WPF

Reproduction Steps

  1. Run CefSharp.Wpf.Example
  2. Load the following gist in the browser
  3. Drag the blue box from one grey box to the other
  4. View the emit drag and drop events listed below

Expected behavior

I would expect the dragend event to be emit when the drag operation ended, as described here. In this example, this would be reflected by dragend being printed at the bottom of the event list.

This behavior does occur when using the CEF browser, as shown below.
cef-124-drag-and-drop-events

Actual behavior

The dragend event is not emit after dragging and dropping an element.

cefsharp-124-drag-and-drop-events

Apologies for printing the events to the screen - I wanted the gif showing the behavior in CEF to match, and unfortunately trying to load DevTools when running the cefclient.exe --multi-threaded-message-loop --no-sandbox --off-screen-rendering-enabled --enable-gpu command would crash my instance of CEF.

Regression?

This issue seems like it may potentially be relevant, however was not followed up on by the creator. Unfortunately, I was unable to verify if this was the case, as I was unable to build the cefsharp/86 branch.

Known Workarounds

No known workarounds, aside from avoiding any functionality that would rely on an event handler for dragend.

Does this problem also occur in the CEF Sample Application

No

Other information

No response

@amaitland amaitland added the wpf label May 15, 2024
@amaitland amaitland changed the title dragend event not emitted WPF - JavaScript DragEnd event not emitted May 15, 2024
@amaitland
Copy link
Member

If cefclient with --off-screen-rendering-enabled works correctly then you can compare the behaviour and see what changes are required in the WPF implementation.

Pull requests welcome.

unfortunately trying to load DevTools when running the cefclient.exe --multi-threaded-message-loop --no-sandbox --off-screen-rendering-enabled --enable-gpu command would crash my instance of CEF.

This is expected if you are running M125 as there is an upstream issue as discussed at https://www.magpcss.org/ceforum/viewtopic.php?f=6&t=19782

I wouldn't expect this issue if you are testing with the 124 build.

No known workarounds, aside from avoiding any functionality that would rely on an event handler for dragend.

Using https://github.com/cefsharp/CefSharp.Wpf.HwndHost should likely work as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants