fix: enable resize/rotate controls on single-click object selection

In setMode('select'), explicitly set hasControls, hasBorders, and evented
on all objects. In drawing modes, disable selectable/evented to prevent
accidental interaction. Fixes controls only appearing on multi-select drag.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Adriano
2026-02-08 10:45:56 +01:00
parent f665bffb7a
commit f2df6be060
2 changed files with 9 additions and 2 deletions
+1 -1
View File
@@ -353,7 +353,7 @@
<script>
pdfjsLib.GlobalWorkerOptions.workerSrc = 'https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.11.174/pdf.worker.min.js';
</script>
<script src="{{ url_for('static', filename='js/annotation-editor.js') }}?v=9"></script>
<script src="{{ url_for('static', filename='js/annotation-editor.js') }}?v=10"></script>
<script>
function taskDrawing() {
const taskData = window.__taskData || {};