Fix slider release event not triggering
This commit is contained in:
@@ -59,7 +59,7 @@
|
|||||||
on:blur={clamp}
|
on:blur={clamp}
|
||||||
{step}
|
{step}
|
||||||
{disabled}
|
{disabled}
|
||||||
on:mouseup={handle_release}
|
on:pointerup={handle_release}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -73,9 +73,8 @@
|
|||||||
max={maximum}
|
max={maximum}
|
||||||
{step}
|
{step}
|
||||||
{disabled}
|
{disabled}
|
||||||
on:mouseup={handle_release}
|
on:pointerup={handle_release}
|
||||||
on:pointerdown
|
on:pointerdown
|
||||||
on:pointerup
|
|
||||||
on:pointermove
|
on:pointermove
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|||||||
@@ -161,16 +161,16 @@ export class ComfySwapAction extends ComfyGraphNode {
|
|||||||
{ name: "swap", type: BuiltInSlotType.ACTION }
|
{ name: "swap", type: BuiltInSlotType.ACTION }
|
||||||
],
|
],
|
||||||
outputs: [
|
outputs: [
|
||||||
{ name: "B", type: "*" },
|
{ name: "B", type: BuiltInSlotType.EVENT },
|
||||||
{ name: "A", type: "*" }
|
{ name: "A", type: BuiltInSlotType.EVENT }
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
override onAction(action: any, param: any) {
|
override onAction(action: any, param: any) {
|
||||||
const a = this.getInputData(0)
|
const a = this.getInputData(0)
|
||||||
const b = this.getInputData(1)
|
const b = this.getInputData(1)
|
||||||
this.setOutputData(0, a)
|
this.triggerSlot(0, a)
|
||||||
this.setOutputData(1, b)
|
this.triggerSlot(1, b)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,9 @@ import { f7 } from "framework7-svelte"
|
|||||||
let notification;
|
let notification;
|
||||||
|
|
||||||
function notifyf7(text: string, title?: string) {
|
function notifyf7(text: string, title?: string) {
|
||||||
|
if (!f7)
|
||||||
|
return;
|
||||||
|
|
||||||
if (!notification) {
|
if (!notification) {
|
||||||
notification = f7.notification.create({
|
notification = f7.notification.create({
|
||||||
title: title,
|
title: title,
|
||||||
|
|||||||
@@ -37,6 +37,12 @@
|
|||||||
option = value;
|
option = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function onRelease(e: Event) {
|
||||||
|
if (nodeValue && option != null) {
|
||||||
|
$nodeValue = option
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function setBackgroundSize(input: HTMLInputElement) {
|
function setBackgroundSize(input: HTMLInputElement) {
|
||||||
input.style.setProperty("--background-size", `${getBackgroundSize(input)}%`);
|
input.style.setProperty("--background-size", `${getBackgroundSize(input)}%`);
|
||||||
}
|
}
|
||||||
@@ -54,12 +60,6 @@
|
|||||||
setBackgroundSize(target);
|
setBackgroundSize(target);
|
||||||
}
|
}
|
||||||
|
|
||||||
function onRelease(e: Event) {
|
|
||||||
if (nodeValue && option) {
|
|
||||||
$nodeValue = option
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
let elem: HTMLDivElement = null;
|
let elem: HTMLDivElement = null;
|
||||||
|
|
||||||
$: if (elem) {
|
$: if (elem) {
|
||||||
|
|||||||
Reference in New Issue
Block a user