Fixes [#55] with onBeforeShow not being called before trying to scroll