Big arrow hitbox
This commit is contained in:
parent
538202e7ac
commit
c5dd848a05
1 changed files with 5 additions and 5 deletions
|
@ -1915,12 +1915,12 @@ function stringCDF(id,val,base,amp) {
|
||||||
|
|
||||||
function addClickableArrow(elem, target) {
|
function addClickableArrow(elem, target) {
|
||||||
//up and down arrow - done ugly
|
//up and down arrow - done ugly
|
||||||
let arrow = document.createElement("img");
|
let arrow = make_elem("img", [], { id: "arrow_" + elem.id, src: "../media/icons/" + (newIcons ? "new" : "old") + "/toggle_down.png" });
|
||||||
arrow.id = "arrow_" + elem.id;
|
|
||||||
arrow.style.maxWidth = document.body.clientWidth > 900 ? "3rem" : "10rem";
|
arrow.style.maxWidth = document.body.clientWidth > 900 ? "3rem" : "10rem";
|
||||||
arrow.src = "../media/icons/" + (newIcons ? "new" : "old") + "/toggle_down.png";
|
let container = make_elem('div', ['col']);
|
||||||
elem.appendChild(arrow);
|
container.appendChild(arrow);
|
||||||
arrow.addEventListener("click", () => toggle_spell_tab(arrow, target));
|
elem.appendChild(container);
|
||||||
|
container.addEventListener("click", () => toggle_spell_tab(arrow, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
// toggle arrow thinger
|
// toggle arrow thinger
|
||||||
|
|
Loading…
Reference in a new issue