editor: allow interacting with a widget without selecting it by using the middle mouse button or by holding shift+win (shift+cmd on mac).

This commit is contained in:
bordun 2022-07-04 10:55:25 +02:00
parent aa2b9fea08
commit 1b10dc7ca0
4 changed files with 11 additions and 3 deletions

View file

@ -25,7 +25,7 @@ class UiSelectArea {
}
mousedown(e) {
if (!e.shiftKey || event.altKey || event.button === 2) return
if (!e.shiftKey || event.altKey || event.button === 2 || (event.shiftKey && event.metaKey)) return
this.startX = this.curX = e.clientX
this.startY = this.curY = e.clientY
this.down = true