fix swipes position, charlist scrolls to character

This commit is contained in:
RossAscends
2023-05-18 17:57:50 +09:00
parent 07fcf3d2b2
commit d84c91a69a
2 changed files with 41 additions and 0 deletions

View File

@@ -4104,6 +4104,21 @@ function select_rm_info(type, charId) {
}
selectRightMenuWithAnimation('rm_characters_block');
if (type === 'char_import' || type === 'char_create') {
//$(`#rm_characters_block [title="${charId + '.png'}"]`).scrollIntoView({ behavior: "smooth", block: "end" });
const element = $(`#rm_characters_block [title="${charId + '.png'}"]`).get(0);
element.scrollIntoView({ behavior: 'smooth', block: 'end' });
/* $(`#rm_characters_block [title="${charId + '.png'}"]`).parent.addClass('flash animated');
setTimeout(function(){
$(`#rm_characters_block [title="${charId + '.png'}"]`).parent.addClass('flash animated');
}, 1000); */
}
setRightTabSelectedClass();
prev_selected_char = charId;