Correctly enforce mouse history size.