Fix horizontal panning with mouse selection

https://github.com/mathquill/mathquill/commit/32a48e4a4f2cd3ecaedcf36faac5c84fe590acc9#commitcomment-5734244