Skip to content

Commit

Permalink
Util: _loop method provides loop Time for current animation frame
Browse files Browse the repository at this point in the history
[Issue] N/A
[Problem] Progress bar is not animating on value change
[Solution] Animation callback in the progress bar
 expects time as argument but not given.
 The "_loop" method in tau.util has been changed.

Signed-off-by: Tomasz Lukawski <t.lukawski@samsung.com>
  • Loading branch information
TomaszLukawskiSam committed Nov 12, 2019
1 parent 8dc4b95 commit ff219a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/core/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
waitingFrames = [];

while (currentFrameFunction) {
currentFrameFunction();
currentFrameFunction(loopTime);
if (performance.now() - loopTime < 15) {
currentFrameFunction = loopWaitingFrames.shift();
} else {
Expand Down

0 comments on commit ff219a1

Please sign in to comment.