mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
chore: update chromium to 82.0.4058.2 (#22198)
Co-authored-by: John Kleinschmidt <jkleinsc@github.com> Co-authored-by: Samuel Attard <samuel.r.attard@gmail.com> Co-authored-by: loc <andy@slack-corp.com> Co-authored-by: Robo <hop2deep@gmail.com>
This commit is contained in:
@@ -264,17 +264,16 @@ bool Converter<blink::WebMouseWheelEvent>::FromV8(
|
||||
bool has_precise_scrolling_deltas = false;
|
||||
dict.Get("hasPreciseScrollingDeltas", &has_precise_scrolling_deltas);
|
||||
if (has_precise_scrolling_deltas) {
|
||||
out->delta_units =
|
||||
ui::input_types::ScrollGranularity::kScrollByPrecisePixel;
|
||||
out->delta_units = ui::ScrollGranularity::kScrollByPrecisePixel;
|
||||
} else {
|
||||
out->delta_units = ui::input_types::ScrollGranularity::kScrollByPixel;
|
||||
out->delta_units = ui::ScrollGranularity::kScrollByPixel;
|
||||
}
|
||||
|
||||
#if defined(USE_AURA)
|
||||
// Matches the behavior of ui/events/blink/web_input_event_traits.cc:
|
||||
bool can_scroll = true;
|
||||
if (dict.Get("canScroll", &can_scroll) && !can_scroll) {
|
||||
out->delta_units = ui::input_types::ScrollGranularity::kScrollByPage;
|
||||
out->delta_units = ui::ScrollGranularity::kScrollByPage;
|
||||
out->SetModifiers(out->GetModifiers() & ~blink::WebInputEvent::kControlKey);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -148,7 +148,7 @@ v8::Local<v8::Value> Converter<display::Display>::ToV8(
|
||||
dict.Set("accelerometerSupport", val.accelerometer_support());
|
||||
dict.Set("monochrome", val.is_monochrome());
|
||||
dict.Set("colorDepth", val.color_depth());
|
||||
dict.Set("colorSpace", val.color_space().ToString());
|
||||
dict.Set("colorSpace", val.color_spaces().GetRasterColorSpace().ToString());
|
||||
dict.Set("depthPerComponent", val.depth_per_component());
|
||||
dict.Set("size", val.size());
|
||||
dict.Set("workAreaSize", val.work_area_size());
|
||||
|
||||
Reference in New Issue
Block a user