Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
304 views
in Technique[技术] by (71.8m points)

javascript - Konvajs can't move an object after animation

I am making an animation with a Circle. The circle is following a Path trajectory. But after the animation, the Circle is no longer responding to Drag and Drop behavior, and no errors are shown.

var anim = new Konva.Animation(function(frame) {
    pos = pos + 1;
    pt = path.getPointAtLength(pos * step);
    circle.position({x: pt.x, y: pt.y});    
  }, layer);
anim.start()

The "draggable" property is still True for the circle, but I can't move it. Any ideas?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...