mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-25 23:25:43 -03:00
fix: enable middle mouse pan in autocomplete text widget
Remove pointer event .stop modifiers from textarea to allow events to propagate to container where forwardMiddleMouseToCanvas forwards them to ComfyUI canvas for pan functionality
This commit is contained in:
@@ -6,9 +6,6 @@
|
|||||||
:spellcheck="spellcheck ?? false"
|
:spellcheck="spellcheck ?? false"
|
||||||
:class="['text-input', { 'vue-dom-mode': isVueDomMode }]"
|
:class="['text-input', { 'vue-dom-mode': isVueDomMode }]"
|
||||||
@input="onInput"
|
@input="onInput"
|
||||||
@pointerdown.stop
|
|
||||||
@pointermove.stop
|
|
||||||
@pointerup.stop
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -1725,7 +1725,7 @@ to {
|
|||||||
padding: 20px 0;
|
padding: 20px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.autocomplete-text-widget[data-v-82697d49] {
|
.autocomplete-text-widget[data-v-f4679753] {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -1734,7 +1734,7 @@ to {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Canvas mode styles (default) - matches built-in comfy-multiline-input */
|
/* Canvas mode styles (default) - matches built-in comfy-multiline-input */
|
||||||
.text-input[data-v-82697d49] {
|
.text-input[data-v-f4679753] {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background-color: var(--comfy-input-bg, #222);
|
background-color: var(--comfy-input-bg, #222);
|
||||||
@@ -1751,7 +1751,7 @@ to {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Vue DOM mode styles - matches built-in p-textarea in Vue DOM mode */
|
/* Vue DOM mode styles - matches built-in p-textarea in Vue DOM mode */
|
||||||
.text-input.vue-dom-mode[data-v-82697d49] {
|
.text-input.vue-dom-mode[data-v-f4679753] {
|
||||||
background-color: var(--color-charcoal-400, #313235);
|
background-color: var(--color-charcoal-400, #313235);
|
||||||
color: #fff;
|
color: #fff;
|
||||||
padding: 8px 12px;
|
padding: 8px 12px;
|
||||||
@@ -1760,7 +1760,7 @@ to {
|
|||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
font-family: inherit;
|
font-family: inherit;
|
||||||
}
|
}
|
||||||
.text-input[data-v-82697d49]:focus {
|
.text-input[data-v-f4679753]:focus {
|
||||||
outline: none;
|
outline: none;
|
||||||
}`));
|
}`));
|
||||||
document.head.appendChild(elementStyle);
|
document.head.appendChild(elementStyle);
|
||||||
@@ -13430,19 +13430,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|||||||
placeholder: __props.placeholder,
|
placeholder: __props.placeholder,
|
||||||
spellcheck: __props.spellcheck ?? false,
|
spellcheck: __props.spellcheck ?? false,
|
||||||
class: normalizeClass(["text-input", { "vue-dom-mode": isVueDomMode.value }]),
|
class: normalizeClass(["text-input", { "vue-dom-mode": isVueDomMode.value }]),
|
||||||
onInput,
|
onInput
|
||||||
onPointerdown: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
||||||
}, ["stop"])),
|
|
||||||
onPointermove: _cache[1] || (_cache[1] = withModifiers(() => {
|
|
||||||
}, ["stop"])),
|
|
||||||
onPointerup: _cache[2] || (_cache[2] = withModifiers(() => {
|
|
||||||
}, ["stop"]))
|
|
||||||
}, null, 42, _hoisted_2)
|
}, null, 42, _hoisted_2)
|
||||||
]);
|
]);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
const AutocompleteTextWidget = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-82697d49"]]);
|
const AutocompleteTextWidget = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f4679753"]]);
|
||||||
const LORA_PROVIDER_NODE_TYPES$1 = [
|
const LORA_PROVIDER_NODE_TYPES$1 = [
|
||||||
"Lora Stacker (LoraManager)",
|
"Lora Stacker (LoraManager)",
|
||||||
"Lora Randomizer (LoraManager)",
|
"Lora Randomizer (LoraManager)",
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user