简体   繁体   English

使用KineticJS移动形状

[英]Move Shape with KineticJS

Here is a jsfiddle , with a shape that should be moved on mouse drag events. 这是一个jsfiddle ,其形状应该在鼠标拖动事件上移动。 I can see in the javascript console that shape.move() is called with proper values, the shape wouldn't move though. 我可以在javascript控制台中看到,使用适当的值调用shape.move(),但形状不会移动。

Why doesn't the shape move? 为什么形状不移动?

调用stage.draw()后,形状会移动。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM