function getEventTouches(e) {
      return e.touches && e.touches.length ? e.touches : [{
        pageX: e.pageX,
        pageY: e.pageY
      }];
    }
Shrink the scroll view when the keyboard is up if necessary and if the
focused input is below the bottom of the shrunk scroll view, scroll it
into view.