mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-05 02:25:45 +02:00
Update:Save last scroll position for item pages #717
This commit is contained in:
parent
2643e98fc0
commit
d207e88e18
2 changed files with 16 additions and 2 deletions
|
@ -22,7 +22,8 @@ export const state = () => ({
|
|||
showSideDrawer: false,
|
||||
isNetworkListenerInit: false,
|
||||
serverSettings: null,
|
||||
lastBookshelfScrollData: {}
|
||||
lastBookshelfScrollData: {},
|
||||
lastItemScrollData: {}
|
||||
})
|
||||
|
||||
export const getters = {
|
||||
|
@ -89,6 +90,9 @@ export const mutations = {
|
|||
setLastBookshelfScrollData(state, { scrollTop, path, name }) {
|
||||
state.lastBookshelfScrollData[name] = { scrollTop, path }
|
||||
},
|
||||
setLastItemScrollData(state, data) {
|
||||
state.lastItemScrollData = data
|
||||
},
|
||||
setPlayerItem(state, playbackSession) {
|
||||
state.playerIsLocal = playbackSession ? playbackSession.playMethod == this.$constants.PlayMethod.LOCAL : false
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue