cubiq / iscroll

Smooth scrolling for the web
http://iscrolljs.com
MIT License
12.87k stars 3.8k forks source link

The event of scrollEnd never trigger #1150

Closed blankzust closed 7 years ago

blankzust commented 7 years ago

I find the reason is 'isInTransition' is always false when refresh.

blankzust commented 7 years ago

But I need scrollEnd to excute refreshing code when scrolling to bottom

blankzust commented 7 years ago

My code is easy as follows:

       var myScroll = new IScroll("#wrapper", {
          probeType: 2,
          preventDefault: false,
          interactiveScrollbars: true,
          useTransform: true
        });

        var positionJudge = function() {
          console.log(this.y, this.maxScrollY);
        }

        myScroll.on('scroll', positionJudge);

        myScroll.on('scrollEnd', positionJudge)
blankzust commented 7 years ago

scroll event is triggered

blankzust commented 7 years ago

@cubiq

blankzust commented 7 years ago

I solve it but I do not kown why.The result is good anyway.

yangjocy commented 6 years ago

Hi There, same issue here, would you pls share how u solve it?