(this));
    },

    onBeginZoom_(e) {
      this.isZooming_ = true;
      this.lastMouseViewPos_ = this.extractRelativeMousePosition_(e);
      e.preventDefault();
    },

    onUpdateZoom_(e) {
      if (!this.isZooming_) return;

      const currentMouseViewPos = this.extractRelativeMousePosition_(e);

      // Take the distance the mouse has moved and we want to zoom at about
      // 1/1000th of that speed. 0.01 feels jumpy. This could possibly be tuned
      // more if people feel it's too slow.
     