swapped vars in getScrollLeft/Top functions