[bug] fix link hover control not working the first time clicked

This commit is contained in:
zombieFox 2019-11-21 18:04:30 +00:00
parent b845255242
commit 87f51ae9c2
2 changed files with 9 additions and 9 deletions

View File

@ -76,7 +76,7 @@
margin-right: 0.5em; margin-right: 0.5em;
} }
.is-link-item-hoverscale .link-item.link-empty:hover { .is-link-item-hoverscale-show .link-item.link-empty:hover {
transform: scale(1); transform: scale(1);
} }
@ -102,13 +102,13 @@
outline: 0; outline: 0;
} }
.is-link-item-hoverscale .link-item:focus-within, .is-link-item-hoverscale-show .link-item:focus-within,
.is-link-item-hoverscale .link-item:focus, .is-link-item-hoverscale-show .link-item:focus,
.is-link-item-hoverscale .link-item:hover { .is-link-item-hoverscale-show .link-item:hover {
transform: scale(1.05); transform: scale(1.05);
} }
.is-link-item-hoverscale .link-item:active { .is-link-item-hoverscale-show .link-item:active {
transform: scale(1.04); transform: scale(1.04);
transition: none; transition: none;
} }

View File

@ -2105,7 +2105,7 @@ var control = (function() {
} }
}, { }, {
element: helper.e(".control-link-item-hoverscale"), element: helper.e(".control-link-item-hoverscale"),
path: "link.item.hoverScale", path: "link.item.hoverScale.show",
type: "checkbox", type: "checkbox",
func: function() { func: function() {
render.class(); render.class();
@ -2717,7 +2717,7 @@ var control = (function() {
helper.removeClass(html, "is-link-item-url-show"); helper.removeClass(html, "is-link-item-url-show");
helper.removeClass(html, "is-link-item-line-show"); helper.removeClass(html, "is-link-item-line-show");
helper.removeClass(html, "is-link-item-shadow-show"); helper.removeClass(html, "is-link-item-shadow-show");
helper.removeClass(html, "is-link-item-hoverscale"); helper.removeClass(html, "is-link-item-hoverscale-show");
helper.removeClass(html, "is-link-item-alignment-left"); helper.removeClass(html, "is-link-item-alignment-left");
helper.removeClass(html, "is-link-item-alignment-center"); helper.removeClass(html, "is-link-item-alignment-center");
helper.removeClass(html, "is-link-item-alignment-right"); helper.removeClass(html, "is-link-item-alignment-right");
@ -2748,8 +2748,8 @@ var control = (function() {
if (state.get().link.item.shadow.show) { if (state.get().link.item.shadow.show) {
helper.addClass(html, "is-link-item-shadow-show"); helper.addClass(html, "is-link-item-shadow-show");
}; };
if (state.get().link.item.hoverScale) { if (state.get().link.item.hoverScale.show) {
helper.addClass(html, "is-link-item-hoverscale"); helper.addClass(html, "is-link-item-hoverscale-show");
}; };
if (state.get().link.item.border > 0) { if (state.get().link.item.border > 0) {
helper.addClass(html, "is-link-item-border"); helper.addClass(html, "is-link-item-border");