Merge pull request #7362 from bsclifton/fix-windows-draggable-high-dpi
Fixes mouse coordinates for Windows when display is set to a higher DPI
This commit is contained in:
commit
c51982a231
1 changed files with 2 additions and 1 deletions
|
@ -131,8 +131,9 @@ void AtomRenderViewObserver::DraggableRegionsChanged(blink::WebFrame* frame) {
|
||||||
blink::WebVector<blink::WebDraggableRegion> webregions =
|
blink::WebVector<blink::WebDraggableRegion> webregions =
|
||||||
frame->document().draggableRegions();
|
frame->document().draggableRegions();
|
||||||
std::vector<DraggableRegion> regions;
|
std::vector<DraggableRegion> regions;
|
||||||
for (const auto& webregion : webregions) {
|
for (auto& webregion : webregions) {
|
||||||
DraggableRegion region;
|
DraggableRegion region;
|
||||||
|
render_view()->ConvertViewportToWindowViaWidget(&webregion.bounds);
|
||||||
region.bounds = webregion.bounds;
|
region.bounds = webregion.bounds;
|
||||||
region.draggable = webregion.draggable;
|
region.draggable = webregion.draggable;
|
||||||
regions.push_back(region);
|
regions.push_back(region);
|
||||||
|
|
Loading…
Reference in a new issue