inspector: prevent editing non-editable widgets (e.g matrix items) when clicking on their ids in error logs
This commit is contained in:
parent
a4f7439c5d
commit
57f169e365
2 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue