electron / electron/electron

click and other mouse events on a BrowserView are ignored if the BrowserView is on top of a draggable region

Open
#28,057 17 comments 0 reactions 0 assignees View on GitHub
30-x-y bug :beetle: component/BrowserView component/draggable-regions has-repro-repo platform/windows status/confirmed
Dominant language
C++
Stars
123k
Forks
17.5k
Avg merge
14h 28m
Merged PRs (30d)
870

Description

### Preflight Checklist

* [x] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/master/CONTRIBUTING.md) for this project.
* [x] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md) that this project adheres to.
* [x] I have searched the issue tracker for an issue that matches the one I want to file, without success.

### Issue Details

* **Electron Version:**
* 11.3.0
* **Operating System:**
* Windows 10 20H2
* **Last Known Working Electron version:**
* Not sure, have tried Electron 10.3.1 with the same result

### Expected Behavior
Buttons on a BrowserView rendered on top of a draggable region with the `-webkit-app-region: no-drag` style applied should be clickable and hoverable.

### Actual Behavior
Buttons on a BrowserView rendered on top of a draggable region are not clickable or hoverable.

### To Reproduce
See branch here: https://github.com/devinbinnie/electron-quick-start/tree/browserview_click_issue

### Screenshots
![Hello World! 2021-03-08 17-33-22](https://user-images.githubusercontent.com/52460000/110390844-974d1c80-8034-11eb-9d33-3b3d1c7554b4.gif)

### Additional Information
Works correctly on macOS.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.