Skip to content

Commit

Permalink
Fix doublecolumn scroll dots
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-panhead committed Sep 29, 2023
1 parent 19e1469 commit 7b5a829
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/lab-notebook/DoubleColumn.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ onMounted(() => {
})
const onScroll = () => {
const maxWidth = scrollWindow.value ? (scrollWindow.value?.scrollWidth - scrollWindow.value?.clientWidth) : 0
if (scrollWindow.value?.scrollLeft == 0) scrollPos.value = 0
if (scrollWindow.value?.scrollLeft == 247) scrollPos.value = 247
if (scrollWindow.value?.scrollLeft == maxWidth) scrollPos.value = maxWidth
}
</script>

Expand Down

0 comments on commit 7b5a829

Please sign in to comment.