Project

General

Profile

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

Bruce Toll, 05/15/2019 10:04 PM

View differences:

src/js/WTableView.js
32 32
   }
33 33

  
34 34
   var scrollX1 = 0, scrollX2 = 0, scrollY1 = 0, scrollY2 = 0;
35
   var scrollToPending = false;
35
   var scrollToPending = 0;
36 36

  
37 37
   /*
38 38
    * We need to remember this for when going through a hide()
......
305 305
   };
306 306

  
307 307
   this.setScrollToPending = function() {
308
     scrollToPending = true;
308
     scrollToPending += 1;
309 309
   };
310 310

  
311 311
   this.scrollToPx = function(x, y) {
......
315 315
   };
316 316

  
317 317
   this.scrollTo = function(x, y, hint) {
318
     scrollToPending = false;
318
     if (scrollToPending > 0)
319
       scrollToPending -= 1;
319 320
     if (y != -1) {
320 321
       var top = contentsContainer.scrollTop,
321 322
       height = contentsContainer.clientHeight;
322
- 
(3-3/4)