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