Skip to content

Commit

Permalink
- CHG: Smoother sync scrolling.
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-raubach committed Apr 30, 2024
1 parent 6d5e417 commit c9dc7f9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/views/DataGridView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,10 @@ export default {
}
},
syncScroll: function () {
this.$refs.rowHeader.scrollTop = this.$refs.wrapper.scrollTop
this.$refs.columnHeader.scrollLeft = this.$refs.wrapper.scrollLeft
window.requestAnimationFrame(() => {
this.$refs.rowHeader.scrollTop = this.$refs.wrapper.scrollTop
this.$refs.columnHeader.scrollLeft = this.$refs.wrapper.scrollLeft
})
}
},
mounted: function () {
Expand Down

0 comments on commit c9dc7f9

Please sign in to comment.