# HG changeset patch # User Sebastien Jodogne # Date 1670003570 -3600 # Node ID dbafd535136ec457cdee37a6addce2681892ba6b # Parent 637d6373127a9958434aef2edb6a03a84f4abf99 refactoring diff -r 637d6373127a -r dbafd535136e Applications/StoneWebViewer/WebApplication/app.js --- a/Applications/StoneWebViewer/WebApplication/app.js Fri Dec 02 18:49:06 2022 +0100 +++ b/Applications/StoneWebViewer/WebApplication/app.js Fri Dec 02 18:52:50 2022 +0100 @@ -411,6 +411,12 @@ if (reschedule) { this.cineTimeoutId = setTimeout(this.CineCallback, 1000.0 / this.cineFramesPerSecond); } + }, + ClickVerticalScrollbar: function(event) { + var offset = event.currentTarget.getClientRects()[0]; + var y = event.clientY - offset.top; + var height = event.currentTarget.offsetHeight; + this.currentFrame = Math.min(this.numberOfFrames - 1, Math.floor(y * this.numberOfFrames / (height - 1))); } } }); diff -r 637d6373127a -r dbafd535136e Applications/StoneWebViewer/WebApplication/index.html --- a/Applications/StoneWebViewer/WebApplication/index.html Fri Dec 02 18:49:06 2022 +0100 +++ b/Applications/StoneWebViewer/WebApplication/index.html Fri Dec 02 18:52:50 2022 +0100 @@ -759,7 +759,7 @@
+ v-on:click="ClickVerticalScrollbar($event)">