Usability bug - Skip counter

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Usability bug - Skip counter

micke04
A small usability bug that should be fixed:
Reply | Threaded
Open this post in threaded view
|

Re: Usability bug - Skip counter

Wizzud
In buildBars() function, change...

var h = Math.round(limit / 2);

...to...

var h = Math.floor(limit / 2);


for limit 5, current 1, length 16

16 1 2 3 4

for limit 6 current 1, length 16

15 16 1 2 3 4


Note: should probably also check that limit is sensible, ie
if(limit < len && limit > 2){ // support large galleries
Combine literacy with curiosity and a whole world of information opens up to you