diff --git a/lib/tools/phantomas/custom_modules/modules/eventYLT/eventYLT.js b/lib/tools/phantomas/custom_modules/modules/eventYLT/eventYLT.js index aa75f75..8409fbd 100644 --- a/lib/tools/phantomas/custom_modules/modules/eventYLT/eventYLT.js +++ b/lib/tools/phantomas/custom_modules/modules/eventYLT/eventYLT.js @@ -39,7 +39,7 @@ exports.module = function(phantomas) { }); // count window.addEventListener('scroll', ...) - issue #508 - if (eventType === 'scroll' && path === 'window') { + if (eventType === 'scroll' && (path === 'window' || path === '#document')) { phantomas.incrMetric('eventsScrollBound'); phantomas.addOffender('eventsScrollBound', 'bound by %s', phantomas.getBacktrace()); }