I'm surprised by this existing line... It seems expensive to compute this on every event.  Maybe we could compute it on resize? Or on touchstart but not on touch move, maybe?