[mirotalk] - fix: enable touch scroll for avatar picker grid on mobile

This commit is contained in:
Miroslav Pejic
2026-04-28 09:44:36 +02:00
parent 95a01949c6
commit 19a9bea4d7
+2 -1
View File
@@ -12170,7 +12170,8 @@ async function updateMyPeerAvatarByUrl() {
const localGrid = document.createElement('div');
localGrid.style.cssText =
'display:flex;flex-wrap:wrap;justify-content:center;gap:8px;max-height:120px;overflow-y:auto;padding:4px 2px;margin-bottom:4px;';
'display:flex;flex-wrap:wrap;justify-content:center;gap:8px;max-height:120px;overflow-y:scroll;-webkit-overflow-scrolling:touch;touch-action:pan-y;padding:4px 2px;margin-bottom:4px;';
localGrid.addEventListener('touchmove', (e) => e.stopPropagation(), { passive: true });
for (let i = 1; i <= 25; i++) {
const url = `${window.location.origin}/images/avatars/avatar_${String(i).padStart(2, '0')}.png`;