Fast Forward Bug Fix

This commit is contained in:
Luis Fernando Molina committed 2018-05-19 20:30:43 +02:00
1 parent afbfc891e5
commit f75e42c5be
1 file changed
+10
+10
View File
@@ -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 {