Adjust texts for character lorebooks

This commit is contained in:
Cohee
2023-06-26 22:21:01 +03:00
parent 187a0925b0
commit 5798c98f41
2 changed files with 10 additions and 4 deletions

View File

@ -5581,11 +5581,16 @@ function openCharacterWorldPopup() {
return;
}
let selectScrollTop = null;
if (deviceInfo && deviceInfo.device.type === 'desktop') {
e.preventDefault();
const option = $(e.target);
const selectElement = $(extraSelect)[0];
selectScrollTop = selectElement.scrollTop;
option.prop('selected', !option.prop('selected'));
await delay(1);
selectElement.scrollTop = selectScrollTop;
}
onExtraWorldInfoChanged();