Comments on functions

This commit is contained in:
Nelson Campos 2018-04-10 12:04:58 +01:00
parent 7e5c9e1897
commit 6e2c1258df

View File

@ -3520,7 +3520,7 @@ function onRotateRight() {
} }
/** /**
* Note: When pressed f on keyboard or flip control button * Note: When pressed f on keyboard
*/ */
function onFlip( viewer ){ function onFlip( viewer ){
viewer.viewport.flipped = !viewer.viewport.flipped; viewer.viewport.flipped = !viewer.viewport.flipped;
@ -3532,12 +3532,13 @@ function onFlip( viewer ){
viewer.forceRedraw(); viewer.forceRedraw();
} }
/**
* Note: When pressed flip control button
*/
function onButtonFlip() { function onButtonFlip() {
onFlip(this); onFlip(this);
} }
function onPrevious(){ function onPrevious(){
var previous = this._sequenceIndex - 1; var previous = this._sequenceIndex - 1;
if(this.navPrevNextWrap && previous < 0){ if(this.navPrevNextWrap && previous < 0){