We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4287fdc commit 0f57256Copy full SHA for 0f57256
src/index.ts
@@ -410,8 +410,8 @@ export default class CanvasSelect extends EventBus {
410
} else {
411
// 是否点击到形状
412
const [hitShapeIndex, hitShape] = this.hitOnShape(this.mouse);
413
- if (hitShape.readonly) return;
414
if (hitShapeIndex > -1 && hitShape) {
+ if (hitShape.readonly) return;
415
hitShape.dragging = true;
416
this.dataset.forEach((item, i) => item.active = i === hitShapeIndex);
417
this.dataset.splice(hitShapeIndex, 1);
0 commit comments