mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:35:08 +02:00
Moved WebBridge sync to oninput:
This avoids the settings_update being called only when the image finishes loaded
This commit is contained in:
parent
d878ec66e2
commit
32982326b1
1 changed files with 1 additions and 1 deletions
|
@ -530,13 +530,13 @@ HifiEntityUI.prototype = {
|
|||
textureImage.classList.remove("no-preview");
|
||||
textureImage.classList.add("no-texture");
|
||||
}
|
||||
self.webBridgeSync(group.id, url);
|
||||
}, 250);
|
||||
|
||||
textureUrl.oninput = function (event) {
|
||||
// Add throttle
|
||||
var url = event.target.value;
|
||||
imageLoad(url);
|
||||
self.webBridgeSync(group.id, url);
|
||||
};
|
||||
textureUrl.onchange = textureUrl.oninput;
|
||||
textureImage.appendChild(image);
|
||||
|
|
Loading…
Reference in a new issue