Skip to content

Commit

Permalink
Matrix: Fix scrolling with large offsets
Browse files Browse the repository at this point in the history
  • Loading branch information
arneg committed Feb 23, 2021
1 parent 8c9aef1 commit ba226d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/matrix/widgets/virtualtree.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function subscribeAll() {

subs.add(
virtualtreeview.subscribeScrollView((offset) => {
if (offset >= virtualtreeview.amount) {
if (Math.abs(offset) >= virtualtreeview.amount) {
offset = -virtualtreeview.amount;
}

Expand Down

0 comments on commit ba226d0

Please sign in to comment.