Scroll event is not fired inside directive - angular.js

后端 未结 2 1519
别跟我提以往
别跟我提以往 2020-12-06 00:15

I\'m stucked with problem. I have a directive for infinite-scroll where I listen for scroll event. The problem is that scroll event is only fired when I\'m bind

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-06 00:59

    I have created a fiddle for you here: http://jsfiddle.net/ADukg/4831/

    The interesting thing is that I used your exact code, and everything seems to trigger fine (see all the littered console.log() calls). I suspect your problem has to do with your CSS styling though, as without the right use of overflow, I could not get the scroll event to trigger.

提交回复
热议问题