comparison Applications/StoneWebViewer/WebApplication/app.js @ 2013:dbafd535136e

refactoring
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 02 Dec 2022 18:52:50 +0100
parents 25d269c7b753
children a7b5cb068fb8
comparison
equal deleted inserted replaced
2012:637d6373127a 2013:dbafd535136e
409 } 409 }
410 410
411 if (reschedule) { 411 if (reschedule) {
412 this.cineTimeoutId = setTimeout(this.CineCallback, 1000.0 / this.cineFramesPerSecond); 412 this.cineTimeoutId = setTimeout(this.CineCallback, 1000.0 / this.cineFramesPerSecond);
413 } 413 }
414 },
415 ClickVerticalScrollbar: function(event) {
416 var offset = event.currentTarget.getClientRects()[0];
417 var y = event.clientY - offset.top;
418 var height = event.currentTarget.offsetHeight;
419 this.currentFrame = Math.min(this.numberOfFrames - 1, Math.floor(y * this.numberOfFrames / (height - 1)));
414 } 420 }
415 } 421 }
416 }); 422 });
417 423
418 424