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

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

        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)
        }
    }
    
