client sync: use raw target to avoid comparison errors

This commit is contained in:
bordun 2020-01-31 14:02:24 +01:00
parent 92339a9086
commit d64452af99
3 changed files with 13 additions and 3 deletions

View file

@ -46,7 +46,7 @@ var Osc = class Osc extends EventEmitter {
let widgetTarget = widgets[i].getProp('target'),
match = true
if (data.target) {
if (data._rawTarget) {
// if the message target is provided (when message comes from another client connected to the same server)
// then we only update the widgets that have the exact same target
match = deepEqual(widgetTarget, data.target)