inspector: prevent editing non-editable widgets (e.g matrix items) when clicking on their ids in error logs

This commit is contained in:
jean-emmanuel 2025-03-14 03:53:21 +01:00
parent a4f7439c5d
commit 57f169e365
2 changed files with 5 additions and 0 deletions

View file

@ -5,6 +5,7 @@
- ui: limit ctrl + scroll zoom speed
- broken cli when `ELECTRON_RUN_AS_NODE` is set
- inspector: input bug when a code editor was focused using the tab key
- inspector: prevent editing non-editable widgets (e.g matrix items) when clicking on their ids in error logs
- widgets
- fader: add `touchZone` property to allow restricting interaction to a part of the widget

View file

@ -30,6 +30,10 @@ var handleClick = function(event) {
if (!targetWidget) return
while (targetWidget._not_editable && targetWidget.parent) {
targetWidget = targetWidget.parent
}
// if the widget is not already selected
if (!targetWidget.container.classList.contains('editing') || event.detail.ctrlKey || event.detail.shiftKey) {
// add a flag to the original event to prevent draginit