修复多国语言问题
This commit is contained in:
1 parent
f0694431e3
commit
fdac18c9cf
4 files changed
+48
-9
No files matched your search
+3
-3
@@ -955,10 +955,10 @@
|
||||
const maxMarkers = 200;
|
||||
const step = Math.max(1, Math.ceil(sorted.length / maxMarkers));
|
||||
for (let i = 0; i < sorted.length; i += step) {
|
||||
const t = sorted[i];
|
||||
const keyframeTime = sorted[i];
|
||||
const span = document.createElement('span');
|
||||
span.style.left = (duration > 0 ? (t / duration) * 100 : 0) + '%';
|
||||
span.title = t('viewer.keyframeTitle', { time: formatSeconds(t), frame: frameOf(t) });
|
||||
span.style.left = (duration > 0 ? (keyframeTime / duration) * 100 : 0) + '%';
|
||||
span.title = t('viewer.keyframeTitle', { time: formatSeconds(keyframeTime), frame: frameOf(keyframeTime) });
|
||||
span.setAttribute('aria-label', span.title);
|
||||
keyframesEl.appendChild(span);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user