Moved WebBridge sync to oninput:

This avoids the settings_update being called only when the image
finishes loaded
This commit is contained in:
Menithal 2018-06-21 00:08:36 +03:00
parent d878ec66e2
commit 32982326b1

View file

@ -530,13 +530,13 @@ HifiEntityUI.prototype = {
textureImage.classList.remove("no-preview"); textureImage.classList.remove("no-preview");
textureImage.classList.add("no-texture"); textureImage.classList.add("no-texture");
} }
self.webBridgeSync(group.id, url);
}, 250); }, 250);
textureUrl.oninput = function (event) { textureUrl.oninput = function (event) {
// Add throttle // Add throttle
var url = event.target.value; var url = event.target.value;
imageLoad(url); imageLoad(url);
self.webBridgeSync(group.id, url);
}; };
textureUrl.onchange = textureUrl.oninput; textureUrl.onchange = textureUrl.oninput;
textureImage.appendChild(image); textureImage.appendChild(image);