From 56f58dd088587c455226f1d8a7655246313da95b Mon Sep 17 00:00:00 2001 From: AkiraFukushima Date: Thu, 19 Jul 2018 00:47:40 +0900 Subject: [PATCH 1/7] refs #441 Add scroll top button in home --- .../components/TimelineSpace/Contents.vue | 2 + .../TimelineSpace/Contents/Home.vue | 39 +++++++++++++------ src/renderer/components/utils/scroll.js | 37 ++++++++++++++++++ 3 files changed, 67 insertions(+), 11 deletions(-) create mode 100644 src/renderer/components/utils/scroll.js diff --git a/src/renderer/components/TimelineSpace/Contents.vue b/src/renderer/components/TimelineSpace/Contents.vue index f238596f..7961d1ec 100644 --- a/src/renderer/components/TimelineSpace/Contents.vue +++ b/src/renderer/components/TimelineSpace/Contents.vue @@ -35,6 +35,7 @@ export default { width: 100%; overflow: auto; transition: all 0.5s; + scroll-behavior: smooth; } .timeline-wrapper-with-side-bar { @@ -42,6 +43,7 @@ export default { width: -webkit-calc(100% - 320px); overflow: auto; transition: all 0.5s; + scroll-behavior: smooth; } } diff --git a/src/renderer/components/TimelineSpace/Contents/Home.vue b/src/renderer/components/TimelineSpace/Contents/Home.vue index e6e12d8c..6753455b 100644 --- a/src/renderer/components/TimelineSpace/Contents/Home.vue +++ b/src/renderer/components/TimelineSpace/Contents/Home.vue @@ -1,21 +1,26 @@