Mercurial > hg > orthanc-stone
diff Applications/StoneWebViewer/WebApplication/app.js @ 1967:b180233143ae
Added vertical slider showing position of the current frame inside the series
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 28 Oct 2022 10:38:30 +0200 |
parents | 889892e51545 |
children | ed5a0b9183dc |
line wrap: on
line diff
--- a/Applications/StoneWebViewer/WebApplication/app.js Fri Oct 28 09:02:16 2022 +0200 +++ b/Applications/StoneWebViewer/WebApplication/app.js Fri Oct 28 10:38:30 2022 +0200 @@ -158,12 +158,16 @@ }, watch: { currentFrame: function(newVal, oldVal) { - /** - * The "FrameUpdated" event has been received, which indicates - * that the schedule frame has been displayed: The cine loop can - * proceed to the next frame (check out "CineCallback()"). - **/ - this.cineLoadingFrame = false; + if (this.cineLoadingFrame) { + /** + * The "FrameUpdated" event has been received, which indicates + * that the schedule frame has been displayed: The cine loop can + * proceed to the next frame (check out "CineCallback()"). + **/ + this.cineLoadingFrame = false; + } else { + stone.SetFrame(this.canvasId, newVal); + } }, content: function(newVal, oldVal) { this.status = 'loading';