diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/core/scroll/scrollbar_theme_aura.cc')
-rw-r--r-- | chromium/third_party/blink/renderer/core/scroll/scrollbar_theme_aura.cc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/chromium/third_party/blink/renderer/core/scroll/scrollbar_theme_aura.cc b/chromium/third_party/blink/renderer/core/scroll/scrollbar_theme_aura.cc index 75baf5d363c..54f6741b8a3 100644 --- a/chromium/third_party/blink/renderer/core/scroll/scrollbar_theme_aura.cc +++ b/chromium/third_party/blink/renderer/core/scroll/scrollbar_theme_aura.cc @@ -31,10 +31,10 @@ #include "third_party/blink/renderer/core/scroll/scrollbar_theme_aura.h" #include "build/build_config.h" +#include "build/chromeos_buildflags.h" #include "cc/input/scrollbar.h" #include "third_party/blink/public/common/input/web_mouse_event.h" #include "third_party/blink/public/platform/platform.h" -#include "third_party/blink/public/platform/web_rect.h" #include "third_party/blink/public/platform/web_theme_engine.h" #include "third_party/blink/renderer/core/scroll/scrollable_area.h" #include "third_party/blink/renderer/core/scroll/scrollbar.h" @@ -137,7 +137,9 @@ bool ScrollbarThemeAura::SupportsDragSnapBack() const { // Disable snapback on desktop Linux to better integrate with the desktop // behavior. Typically, Linux apps do not implement scrollbar snapback (this // is true for at least GTK and QT apps). -#if defined(OS_LINUX) +// TODO(crbug.com/1052397): Revisit once build flag switch of lacros-chrome is +// complete. +#if defined(OS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) return false; #else return true; @@ -303,7 +305,9 @@ ScrollbarPart ScrollbarThemeAura::PartsToInvalidateOnThumbPositionChange( bool ScrollbarThemeAura::ShouldCenterOnThumb(const Scrollbar& scrollbar, const WebMouseEvent& event) { -#if defined(OS_LINUX) +// TODO(crbug.com/1052397): Revisit once build flag switch of lacros-chrome is +// complete. +#if defined(OS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) if (event.button == WebPointerProperties::Button::kMiddle) return true; #endif |