javascript - Can't detect scroll event since Chrome update -
i updated chrome mac v41.0.2272.101 , realized unable detect javascript scroll event on window when full-screen element has overflow: hidden. don't know why used work few days ago, didn't touch code since update. weird thing is: works on safari.
i created simple fiddle show you: https://jsfiddle.net/4cd2uf0c/3/
example:
<div class="scroll-div"></div> .scroll-div { position: absolute; top: 0; left: 0; height: 100%; width: 100%; background-color: red; overflow: hidden; } $(window).on('scroll', function() { alert('this used work before on chrome mac'); });
any ideas or workaround?
thanks lot!
Comments
Post a Comment