added flag to avoid checking the current section when animating is performing