Added: additional check to prevent refreshing with horizontal moving