diff --git a/plugin/wavesurfer.timeline.js b/plugin/wavesurfer.timeline.js
index <HASH>..<HASH> 100644
--- a/plugin/wavesurfer.timeline.js
+++ b/plugin/wavesurfer.timeline.js
@@ -106,8 +106,8 @@
                 var width = this.drawer.getWidth();
                 var pixelsPerSecond = width/duration;
             } else {
-                var width = backend.getDuration() * this.wavesurfer.minPxPerSec;
-                var pixelsPerSecond = this.wavesurfer.minPxPerSec;
+                var width = backend.getDuration() * wsParams.minPxPerSec;
+                var pixelsPerSecond = wsParams.minPxPerSec;
             }
 
             pixelsPerSecond = pixelsPerSecond / this.wavesurfer.drawer.pixelRatio;
fix to timeline.js drawing bug