demo/page.js
function scrollableElement(els) {
	for (var i = 0, argLength = arguments.length; i <argLength; i++) {
		var el = arguments[i],
		$scrollElement = $(el);
		if ($scrollElement.scrollTop()> 0) {
			return el;
		} else {
			$scrollElement.scrollTop(1);
			var isScrollable = $scrollElement.scrollTop()> 0;
			$scrollElement.scrollTop(0);
			if (isScrollable) {
				return el;
			}
		}
	}
	return [];
}
function scrollableElement(els) {
	for (var i = 0, argLength = arguments.length; i <argLength; i++) {
		var el = arguments[i],
		$scrollElement = $(el);
		if ($scrollElement.scrollTop()> 0) {
			return el;
		} else {
			$scrollElement.scrollTop(1);
			var isScrollable = $scrollElement.scrollTop()> 0;
			$scrollElement.scrollTop(0);
			if (isScrollable) {
				return el;
			}
		}
	}
	return [];
}
function scrollableElement ( els ) { for ( var i = 0 , argLength = arguments . length ; i < argLength ; i ++ ) { var el = arguments [ i ] , $scrollElement = $ ( el ) ; if ( $scrollElement . scrollTop ( ) > 0 ) { return el ; } else { $scrollElement . scrollTop ( 1 ) ; var isScrollable = $scrollElement . scrollTop ( ) > 0 ; $scrollElement . scrollTop ( 0 ) ; if ( isScrollable ) { return el ; } } } return [ ] ; }
use the first element that is "scrollable"
use the first element that is scrollable