@@ -171,8 +171,8 @@ function debugModule(module, runtime) {
171171 }
172172
173173 function setContinue(position) {
174− var timerDelay = Date.now() - pauseTime;
175− runtime.timer.addDelay(timerDelay);
174+ var pauseDelay = Date.now() - pauseTime;
175+ runtime.timer.addDelay(pauseDelay);
176176 programPaused = false;
177177 if (position > 0) {
178178 // If we're not unpausing at the head, then we need to dump the
@@ -180,6 +180,11 @@ function debugModule(module, runtime) {
180180 var lastSnapshotPosition = Math.floor(position / EVENTS_PER_SAVE);
181181 eventsUntilSnapshot = EVENTS_PER_SAVE - (position % EVENTS_PER_SAVE);
182182 snapshots = snapshots.slice(0, lastSnapshotPosition + 1);
183+
184+ var lastEventTime = recordedEvents[position-1].timestep;
185+ var scrubTime = runtime.timer.now() - lastEventTime;
186+ runtime.timer.addDelay(scrubTime);
187+
183188 recordedEvents = recordedEvents.slice(0, position);
184189 tracePath.clearTracesAfter(position);
185190 eventCounter = position;