We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 470e480 commit ad3844cCopy full SHA for ad3844c
src/components/RecycleScroller.vue
@@ -456,6 +456,11 @@ export default {
456
457
if (this.emitUpdate) this.$emit('update', startIndex, endIndex)
458
459
+ // After the user has finished scrolling
460
+ // Sort views so text selection is correct
461
+ clearTimeout(this.$_sortTimer)
462
+ this.$_sortTimer = setTimeout(this.sortViews, 300)
463
+
464
return {
465
continuous,
466
}
@@ -558,6 +563,12 @@ export default {
558
563
})
559
564
throw new Error('Rendered items limit reached')
560
565
},
566
567
+ sortViews () {
568
+ this.pool.sort((viewA, viewB) => viewA.nr.index - viewB.nr.index)
569
+ // Remove text selections as they will most likely be wrong or partial
570
+ window.getSelection().removeAllRanges()
571
+ },
561
572
562
573
574
</script>
0 commit comments