diff Applications/StoneWebViewer/WebApplication/app.js @ 1949:d3ae6858e77b

more consistent handling of numberOfFrames
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 15 Jul 2022 16:19:18 +0200
parents 31fd7aba48ca
children 6ffd65cfd2ee 142c7ee8fe1f
line wrap: on
line diff
--- a/Applications/StoneWebViewer/WebApplication/app.js	Fri Jul 15 16:17:23 2022 +0200
+++ b/Applications/StoneWebViewer/WebApplication/app.js	Fri Jul 15 16:19:18 2022 +0200
@@ -262,7 +262,7 @@
 
     window.addEventListener('FrameUpdated', function(args) {
       if (args.detail.canvasId == that.canvasId) {
-        that.currentFrame = (args.detail.currentFrame + 1);
+        that.currentFrame = args.detail.currentFrame;
         that.numberOfFrames = args.detail.numberOfFrames;
         that.quality = args.detail.quality;
         that.instanceNumber = args.detail.instanceNumber;