From b8345910f2829d6a1db74dcca22d9ac79716b6e1 Mon Sep 17 00:00:00 2001 From: niu tech Date: Sat, 30 Apr 2022 14:35:02 +0200 Subject: feat: add CSS scroll snap in split view mode (#64) --- src/styles/layout.scss | 1 + src/styles/services.scss | 1 + 2 files changed, 2 insertions(+) diff --git a/src/styles/layout.scss b/src/styles/layout.scss index 8454814b0..359df3f35 100644 --- a/src/styles/layout.scss +++ b/src/styles/layout.scss @@ -95,6 +95,7 @@ body.win32:not(.isFullScreen) .app .app__content { .mode__split .app .app__service { overflow-x: auto; + scroll-snap-type: x proximity; } .app { diff --git a/src/styles/services.scss b/src/styles/services.scss index d8f8b9327..359a41ab0 100644 --- a/src/styles/services.scss +++ b/src/styles/services.scss @@ -26,6 +26,7 @@ .services__webview { position: relative; flex: 1 0 33.3333%; + scroll-snap-align: start; } } -- cgit v1.2.3-54-g00ecf