Skip to content
Snippets Groups Projects
Commit bda1dd0d authored by netpro2k's avatar netpro2k
Browse files

Fix delete button showing on sides of images

parent 6ceffcbc
No related branches found
No related tags found
No related merge requests found
......@@ -72,6 +72,7 @@ AFRAME.registerComponent("media-loader", {
{ once: true }
);
this.el.setAttribute("image-plus", { src: raw, contentType });
this.el.setAttribute("position-at-box-shape-border", { target: ".delete-button", dirs: ["forward", "back"] });
} else if (contentType.startsWith("model/gltf") || url.endsWith(".gltf") || url.endsWith(".glb")) {
this.el.addEventListener(
"model-loaded",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment