mirror of
https://github.com/LucasVbr/own-workspace.git
synced 2026-05-19 10:53:19 +00:00
Merge branch 'dev'
This commit is contained in:
@@ -64,10 +64,10 @@ export default {
|
|||||||
this.sortArrayPinnedElements()
|
this.sortArrayPinnedElements()
|
||||||
} else {
|
} else {
|
||||||
item.isPinned = true
|
item.isPinned = true
|
||||||
this.$nextTick(() => {
|
const list = document.getElementById("liste");
|
||||||
const pinnedElement = document.getElementById(item)
|
if (window.scrollY !== 0 || list.scrollTop !== 0) {
|
||||||
pinnedElement.scrollIntoView({behavior: "smooth"})
|
list.scrollTo({top: 0, behavior: 'smooth'});
|
||||||
});
|
}
|
||||||
this.sortArrayPinnedElements()
|
this.sortArrayPinnedElements()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user