From 57fd94dc726b946a956bf3e14b43acefde18e7e4 Mon Sep 17 00:00:00 2001 From: booploops <49113086+booploops@users.noreply.github.com> Date: Fri, 11 Mar 2022 01:59:59 -0800 Subject: [PATCH] exposed scrollpos for content area --- src/renderer/main/vueapp.js | 4 ++++ src/renderer/views/app/app-content.ejs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/renderer/main/vueapp.js b/src/renderer/main/vueapp.js index 7621fb03..6f378cd6 100644 --- a/src/renderer/main/vueapp.js +++ b/src/renderer/main/vueapp.js @@ -151,6 +151,7 @@ const app = new Vue({ tmpVar: [], notification: false, chrome: { + contentScrollPosY: 0, appliedTheme: { location: "", info: {} @@ -876,6 +877,9 @@ const app = new Vue({ this.checkForThemeUpdates() } }, + setContentScrollPos(scroll) { + this.chrome.contentScrollPosY = scroll.target.scrollTop + }, async checkForThemeUpdates() { let self = this const themes = ipcRenderer.sendSync("get-themes") diff --git a/src/renderer/views/app/app-content.ejs b/src/renderer/views/app/app-content.ejs index 38549d75..3912c46f 100644 --- a/src/renderer/views/app/app-content.ejs +++ b/src/renderer/views/app/app-content.ejs @@ -1,4 +1,4 @@ -
+