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:
Brian Clifton 2016-09-26 19:45:14 -07:00
Родитель 6728efe87e
Коммит 13de65d310
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -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);