mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-08 04:48:36 +02:00
Update:Save last scroll position for item pages #717
This commit is contained in:
+5
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user