8000 [Bug]: WebContents.startDrag feature seems to have changed unexpectedly from electron version 19.0.4 to 19.0.5 · Issue #35264 · electron/electron · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[Bug]: WebContents.startDrag feature seems to have changed unexpectedly from electron version 19.0.4 to 19.0.5 #35264
Closed
@takumus

Description

@takumus

Preflight Checklist

Electron Version

19.0.5

What operating system are you using?

macOS

Operating System Version

Mac OS Montrey 12.2.1 (Apple M1)

What arch are you using?

arm64 (including Apple Silicon)

Last Known Working Electron version

19.0.4

Expected Behavior

  1. This feature should copy the target file.

  2. With reference to the sample code:

console.timeEnd('drag2') // line 38 of main.js 

This line should be called at the end of dragging.

Actual Behavior

  1. This feature is moving the target file instead of copying. If you run the sample code in the attached Gist URL, you will find that you are unable to drag the same target more than once.

  2. With reference to the same sample code as [2.] in Expected Behavior, above:

console.timeEnd('drag2') // line 38 of main.js 

This line is being called at the start of dragging, instead of the end.

Testcase Gist URL

https://gist.github.com/34bc977bc272030760b586d53961e0f1

Additional Information

The sample code I provided in the Gist URL was created from the official Sample Code with an addition of console.time and console.timeEnd

I have a feeling this bug was introduced when merging the following Pull Request:
#34615

Questions:

How can I do the following, like before (in 19.0.4 and earlier versions)

  1. Copy the target file on drag
  2. Act on the end of the user's dragging

Behavior on Windows:

In Windows 11, the behavior is as expected, and identical across all Electron versions, including 19.0.4 and 19.0.5.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0