prevent diagonal scroll
performance enhancements