From f75e42c5bee0e2e5d69e1196d9cf3f6dce7c3a99 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Sat, 19 May 2018 20:30:43 +0200 Subject: [PATCH] Fast Forward Bug Fix --- History.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/History.js b/History.js index bee26df8e..4e8bbf381 100644 --- a/History.js +++ b/History.js @@ -66,6 +66,7 @@ recalculateScale(callBackFunction); fileSequence.eventHandler.listenToEvent("Files Updated", onFilesUpdated); // Only the first sequence is supported right now. + viewPort.eventHandler.listenToEvent("Offset Changed", onOffsetChanged); callBackFunction(GLOBAL.DEFAULT_OK_RESPONSE); @@ -139,6 +140,15 @@ } } + function onOffsetChanged() { + + if (Math.random() * 100 > 95) { + + recalculate() + }; + + } + function recalculate(callBackFunction) { try {