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 {