diff --git a/atom/common/native_mate_converters/blink_converter.cc b/atom/common/native_mate_converters/blink_converter.cc index b91bdf2df074..9adb03d4cde3 100644 --- a/atom/common/native_mate_converters/blink_converter.cc +++ b/atom/common/native_mate_converters/blink_converter.cc @@ -238,6 +238,15 @@ bool Converter::FromV8( dict.Get("accelerationRatioX", &out->accelerationRatioX); dict.Get("accelerationRatioY", &out->accelerationRatioY); dict.Get("hasPreciseScrollingDeltas", &out->hasPreciseScrollingDeltas); + +#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->hasPreciseScrollingDeltas = false; + out->modifiers &= ~blink::WebInputEvent::ControlKey; + } +#endif return true; }