mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-13 02:20:41 +01:00
Fix SD wand item not working with reduced motion on phone
This commit is contained in:
parent
526d41edc3
commit
edb4856840
@ -3353,7 +3353,7 @@ async function addSDGenButtons() {
|
||||
|
||||
$(document).on('click touchend', function (e) {
|
||||
const target = $(e.target);
|
||||
if (target.is(dropdown)) return;
|
||||
if (target.is(dropdown) || target.closest(dropdown).length) return;
|
||||
if (target.is(button) && !dropdown.is(':visible') && $('#send_but').is(':visible')) {
|
||||
e.preventDefault();
|
||||
|
||||
@ -3365,6 +3365,7 @@ async function addSDGenButtons() {
|
||||
});
|
||||
|
||||
$('#sd_dropdown [id]').on('click', function () {
|
||||
dropdown.fadeOut(animation_duration);
|
||||
const id = $(this).attr('id');
|
||||
const idParamMap = {
|
||||
'sd_you': 'you',
|
||||
|
Loading…
x
Reference in New Issue
Block a user