mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-03 03:29:09 -04:00
Disable smooth progressbar scrolling when we're at 100% (else the
progressbar trucks along slowly even though the task is done).
This commit is contained in:
@@ -10,6 +10,9 @@
|
||||
if (target_value - current_value > delta) {
|
||||
delta += .075;
|
||||
}
|
||||
if (target_value == 100) {
|
||||
new_value = 100;
|
||||
}
|
||||
$(".gProgressBar").progressbar("value", new_value);
|
||||
animation = setTimeout(function() { animate_progress_bar(target_value); }, 100);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user