exposed scrollpos for content area
This commit is contained in:
parent
437c0cd389
commit
57fd94dc72
2 changed files with 5 additions and 1 deletions
|
@ -151,6 +151,7 @@ const app = new Vue({
|
||||||
tmpVar: [],
|
tmpVar: [],
|
||||||
notification: false,
|
notification: false,
|
||||||
chrome: {
|
chrome: {
|
||||||
|
contentScrollPosY: 0,
|
||||||
appliedTheme: {
|
appliedTheme: {
|
||||||
location: "",
|
location: "",
|
||||||
info: {}
|
info: {}
|
||||||
|
@ -876,6 +877,9 @@ const app = new Vue({
|
||||||
this.checkForThemeUpdates()
|
this.checkForThemeUpdates()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
setContentScrollPos(scroll) {
|
||||||
|
this.chrome.contentScrollPosY = scroll.target.scrollTop
|
||||||
|
},
|
||||||
async checkForThemeUpdates() {
|
async checkForThemeUpdates() {
|
||||||
let self = this
|
let self = this
|
||||||
const themes = ipcRenderer.sendSync("get-themes")
|
const themes = ipcRenderer.sendSync("get-themes")
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<div id="app-content" scrollaxis="y" :style="{'overflow': (chrome.contentAreaScrolling ? '' : 'hidden')}">
|
<div id="app-content" @scroll.passive="setContentScrollPos" :scrollpos="chrome.contentScrollPosY" scrollaxis="y" :style="{'overflow': (chrome.contentAreaScrolling ? '' : 'hidden')}">
|
||||||
<div id="navigation-bar">
|
<div id="navigation-bar">
|
||||||
<button class="nav-item" @click="navigateBack()">
|
<button class="nav-item" @click="navigateBack()">
|
||||||
<%- include('../svg/chevron-left.svg') %>
|
<%- include('../svg/chevron-left.svg') %>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue