diff --git a/src/echo.js b/src/echo.js index 9f15708..a7e8cbc 100644 --- a/src/echo.js +++ b/src/echo.js @@ -38,8 +38,10 @@ window.Echo = (function (window, document, undefined) { if (document.addEventListener) { window.addEventListener('scroll', _throttle, false); + window.addEventListener('resize', _throttle, false); } else { window.attachEvent('onscroll', _throttle); + window.attachEvent('onresize', _throttle); } };