How to use the jquery ui draggable method on an canvas object?

后端 未结 3 1653
野的像风
野的像风 2021-01-26 12:00

I\'m trying to allow the user the ability to move a rectangle around a canvas element using the draggable method.

This was my original thought but it doesn\'t work.

3条回答
  •  感动是毒
    2021-01-26 12:50

    Not sure about using jQuery UI with canvas, but if you are working with canvas you may want to take a look at EaselJS. It makes everything, including drag and drop, very simple.

    EaselJS

提交回复
热议问题