         else if doesAllowScrubbing {
             let rangeSamples = CGFloat(zoomSamples.count)
             highlightedSamples = 0 ..< Int((CGFloat(zoomSamples.startIndex) + rangeSamples * recognizer.location(in: self).x / bounds.width))
+            delegate?.waveformDidEndScrubbing?(self)
         }
     }
     

        if doesAllowScrubbing {
            let rangeSamples = CGFloat(zoomSamples.count)
            highlightedSamples = 0 ..< Int((CGFloat(zoomSamples.startIndex) + rangeSamples * recognizer.location(in: self).x / bounds.width))
        }
    }
}

    
    /// The panning gesture did end
    @objc optional func waveformDidEndPanning(_ waveformView: FDWaveformView)
    
    /// The scrubbing gesture did end
    @objc optional func waveformDidEndScrubbing(_ waveformView: FDWaveformView)
}

//MARK -
