Skip to content

Instantly share code, notes, and snippets.

View jeffturcotte's full-sized avatar

Jeff Turcotte jeffturcotte

View GitHub Profile
@jeffturcotte
jeffturcotte / isItScrollableWithoutVisibleScrollbars.js
Created July 22, 2011 19:02 — forked from jlbruno/isItScrollableWithoutVisibleScrollbars.js
a function to check if a certain element is scrollable, but is NOT showing scrollbars. Useful to use as a test for when you might want to implement another scrolling solution, such as iScroll for iPad.
var isItScrollableWithoutVisibleScrollbars = function(el) {
return (el && (el.scrollHeight > el.offsetHeight) && !(el.offsetWidth > el.scrollWidth));
};