exposed scrollpos for content area

This commit is contained in:
booploops 2022-03-11 01:59:59 -08:00
parent 437c0cd389
commit 57fd94dc72
2 changed files with 5 additions and 1 deletions

View file

@ -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")