Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

find element causing vertical overflow

// Paste the below in the console and scroll. It will log the culprit in the console.

function findScroller(element) {
    element.onscroll = function() { console.log(element)}

    Array.from(element.children).forEach(findScroller);
}

findScroller(document.body);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #find #element #causing #vertical #overflow
ADD COMMENT
Topic
Name
6+6 =