target.offsetParent.offsetTop;
    wave.startPosition = {x:touchX, y:touchY};

    if (elem.classList.contains("recenteringTouch")) {
      wave.endPosition = {x: width / 2,  y: height / 2};
      wave.slideDistance = dist(wave.startPosition, wave.endPosition);
    }
    wave.containerSize = Math.max(width, height);
    wave.maxRadius = distanceFromPointToFurthestCorner(wave.startPosition, {w: width, h: height});
    elem.classList.add("activated");
    scope.waves.push(wave);
    window.requestAnimationFra