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: [],
|
||||
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")
|
||||
|
|
|
@ -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">
|
||||
<button class="nav-item" @click="navigateBack()">
|
||||
<%- include('../svg/chevron-left.svg') %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue