Approaches can be slewed if there are exactly four.
This commit is contained in:
parent
09f436d6ea
commit
31e5dd3697
1 changed files with 2 additions and 2 deletions
|
@ -513,7 +513,7 @@ var arrivalPage = {
|
|||
if (me.activePage == 0) {
|
||||
if (me.enableScrollApproach) {
|
||||
me.scrollApproach += 1;
|
||||
if (me.scrollApproach > size(me.approaches) - 4) {
|
||||
if (me.scrollApproach > size(me.approaches) - 3) {
|
||||
me.scrollApproach = 0;
|
||||
}
|
||||
me.updateApproaches();
|
||||
|
@ -539,7 +539,7 @@ var arrivalPage = {
|
|||
if (me.enableScrollApproach) {
|
||||
me.scrollApproach -= 1;
|
||||
if (me.scrollApproach < 0) {
|
||||
me.scrollApproach = size(me.approaches) - 4;
|
||||
me.scrollApproach = size(me.approaches) - 3;
|
||||
}
|
||||
me.updateApproaches();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue