prohibited move when bar moving between leftX and rightX