Project

General

Profile

Bug #7043 » 0001-Track-count-of-scrollToPending-only-process-last.patch

Bruce Toll, 05/13/2019 03:38 PM

View differences:

src/js/WTableView.js
}
var scrollX1 = 0, scrollX2 = 0, scrollY1 = 0, scrollY2 = 0;
var scrollToPending = false;
var scrollToPending = 0;
/*
* We need to remember this for when going through a hide()
......
};
this.setScrollToPending = function() {
scrollToPending = true;
scrollToPending += 1;
};
this.scrollToPx = function(x, y) {
......
};
this.scrollTo = function(x, y, hint) {
scrollToPending = false;
if (scrollToPending > 0)
scrollToPending -= 1;
if (y != -1) {
var top = contentsContainer.scrollTop,
height = contentsContainer.clientHeight;
(2-2/2)