Canvas Cheat Sheet

HTML5 Canvas Cheat Sheet

HTML5 Canvas Drag and Drop the Stage with KineticJS

Discussion

To drag and drop the entire stage (pan) with KineticJS, we can set the draggable property of the config object to true when the stage is instantiated, or we can use the setDraggable() method.  Unlike drag and drop for other nodes, such as shapes, groups, and layers, we can drag the entire stage by dragging any portion of the stage.

comments powered by Disqus