Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在可拖动(jquery-ui)DIV 中有一个fabricjs 画布。但是,当我拖动 div 时,画布坐标变得疯狂,我无法再与之交互。
知道如何防止这种行为吗?
谢谢
拖动后,让画布知道您正在重新定位它的 div:
canvas.calcOffset();