Skip to content

Commit

Permalink
Fixed issue where mouse can become stuck to the 'Generate Image Numbe…
Browse files Browse the repository at this point in the history
…r' slider in the settings.

Signed-off-by: marijnvg-tng <[email protected]>

fixed issue where mouse can become stuck to the 'Generate Image Number' slider in the settings.

Signed-off-by: marijnvg-tng <[email protected]>
  • Loading branch information
marijnvg-tng committed Dec 2, 2024
1 parent 9fcacb7 commit 596fe95
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion WebUI/src/components/SlideBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,16 @@ function dragMove(e: PointerEvent) {
if (props.disabled) {
return;
}
if (e.buttons === 0){
dragEnd(e);
return;
}
upadteX(e.clientX);
};
function dragEnd(e: PointerEvent) {
position.value!.onpointermove = null;
position.value!.onpointerup = null;
upadteX(e.clientX);
};
function inputChange(e: Event) {
Expand Down

0 comments on commit 596fe95

Please sign in to comment.