# HG changeset patch # User Sebastien Jodogne # Date 1657894758 -7200 # Node ID d3ae6858e77b8c2316da8b71cb2cd62cab5531d1 # Parent d459477804bff2633d90da4d0a4efe0b17a96f49 more consistent handling of numberOfFrames diff -r d459477804bf -r d3ae6858e77b Applications/StoneWebViewer/WebApplication/app.js --- 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; diff -r d459477804bf -r d3ae6858e77b Applications/StoneWebViewer/WebApplication/index.html --- a/Applications/StoneWebViewer/WebApplication/index.html Fri Jul 15 16:17:23 2022 +0200 +++ b/Applications/StoneWebViewer/WebApplication/index.html Fri Jul 15 16:19:18 2022 +0200 @@ -704,7 +704,7 @@ -   {{ currentFrame }} / {{ numberOfFrames }}   +   {{ currentFrame + 1 }} / {{ numberOfFrames }}