Improved out of bounds detection, and fixed another Eclaire bug in MotionEvents