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

后端 未结 3 1606
野的像风
野的像风 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:52

    jCanvas library says they can let you drag on canvas with jQuery. http://calebevans.me/projects/jcanvas/

    They say nothing about jQuery UI though.

    Disclaimer: I've never tried it.

提交回复
热议问题