зеркало из https://github.com/electron/electron.git
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:
Родитель
6728efe87e
Коммит
13de65d310
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче