mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Fixes mouse coordinates for Windows when display is set to a higher DPI (ex: enlarged by 150% using display settings)
This commit is contained in:
@@ -131,8 +131,9 @@ void AtomRenderViewObserver::DraggableRegionsChanged(blink::WebFrame* frame) {
|
||||
blink::WebVector<blink::WebDraggableRegion> webregions =
|
||||
frame->document().draggableRegions();
|
||||
std::vector<DraggableRegion> regions;
|
||||
for (const auto& webregion : webregions) {
|
||||
for (auto& webregion : webregions) {
|
||||
DraggableRegion region;
|
||||
render_view()->ConvertViewportToWindowViaWidget(&webregion.bounds);
|
||||
region.bounds = webregion.bounds;
|
||||
region.draggable = webregion.draggable;
|
||||
regions.push_back(region);
|
||||
|
||||
Reference in New Issue
Block a user