mirror of
https://github.com/YACReader/yacreader
synced 2025-06-03 09:08:20 -04:00
fix misleading indentation of YACReaderFlowGL::setCurrentIndex
This commit is contained in:
parent
472e9f9832
commit
f87e113f89
@ -650,22 +650,21 @@ void YACReaderFlowGL::setCurrentIndex(int pos)
|
|||||||
if(pos >= images.length() && images.length() > 0)
|
if(pos >= images.length() && images.length() > 0)
|
||||||
pos = images.length()-1;
|
pos = images.length()-1;
|
||||||
|
|
||||||
startAnimationTimer();
|
startAnimationTimer();
|
||||||
|
|
||||||
currentSelected = pos;
|
currentSelected = pos;
|
||||||
|
|
||||||
config.animationStep *= config.animationSpeedUp;
|
config.animationStep *= config.animationSpeedUp;
|
||||||
|
|
||||||
if(config.animationStep > config.animationStepMax){
|
if(config.animationStep > config.animationStepMax){
|
||||||
config.animationStep = config.animationStepMax;
|
config.animationStep = config.animationStepMax;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(viewRotateActive && viewRotate < 1){
|
if(viewRotateActive && viewRotate < 1){
|
||||||
viewRotate += config.viewRotateAdd;
|
viewRotate += config.viewRotateAdd;
|
||||||
}
|
}
|
||||||
|
|
||||||
viewRotateActive = 1;
|
|
||||||
|
|
||||||
|
viewRotateActive = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void YACReaderFlowGL::updatePositions()
|
void YACReaderFlowGL::updatePositions()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user