Skip to content

Commit d2696e7

Browse files
committed
Hook up animations to sliders via bindings
1 parent 65d24f3 commit d2696e7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/plot_api/plot_api.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2305,6 +2305,8 @@ Plotly.animate = function(gd, frameOrGroupNameOrFrameList, animationOpts) {
23052305
var newFrame = trans._currentFrame = trans._frameQueue.shift();
23062306

23072307
if(newFrame) {
2308+
gd._fullLayout._currentFrame = newFrame.name;
2309+
23082310
gd.emit('plotly_animatingframe', {
23092311
name: newFrame.name,
23102312
frame: newFrame.frame,

0 commit comments

Comments
 (0)