fixed issue #4. sticky element would not scroll out in case of horizontal scrolling.