Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

fix(cursor): address review findings — aria-label, 3D transform sync, i18n

auberginewly8516707880e4
diff --git a/src/components/video-editor/SettingsPanel.tsx b/src/components/video-editor/SettingsPanel.tsx
index 2b15c24d6..5339fcc16 100644
--- a/src/components/video-editor/SettingsPanel.tsx
+++ b/src/components/video-editor/SettingsPanel.tsx
@@ -1426,6 +1426,7 @@ export function SettingsPanel({
checked={cursorClipToBounds}
onCheckedChange={onCursorClipToBoundsChange}
className="data-[state=checked]:bg-[#34B27B] scale-90"
+ aria-label={t("cursor.clipToBounds")}
/>
</div>
<div className="grid grid-cols-2 gap-2">
diff --git a/src/components/video-editor/VideoPlayback.tsx b/src/components/video-editor/VideoPlayback.tsx
index 6a4f2f3bf..9f4f34b1a 100644
--- a/src/components/video-editor/VideoPlayback.tsx
+++ b/src/components/video-editor/VideoPlayback.tsx
@@ -1634,6 +1634,9 @@ const VideoPlayback = forwardRef<VideoPlaybackRef, VideoPlaybackProps>(
composite3D.style.willChange = "auto";
lastTransformIsIdentity = true;
}
+ if (nativeCursorClipRef.current) {
+ nativeCursorClipRef.current.style.transform = "";
+ }
if (lastPerspectiveValue !== 0) {
outerWrapper.style.perspective = "";
lastPerspectiveValue = 0;
@@ -1650,6 +1653,9 @@ const VideoPlayback = forwardRef<VideoPlaybackRef, VideoPlaybackProps>(
);
composite3D.style.transform = `scale(${containScale}) rotateX(${effectiveRotation.rotationX}deg) rotateY(${effectiveRotation.rotationY}deg) rotateZ(${effectiveRotation.rotationZ}deg)`;
composite3D.style.willChange = "transform";
+ if (nativeCursorClipRef.current) {
+ nativeCursorClipRef.current.style.transform = composite3D.style.transform;
+ }
lastTransformIsIdentity = false;
if (persp !== lastPerspectiveValue) {
outerWrapper.style.perspective = `${persp}px`;
diff --git a/src/i18n/locales/vi/settings.json b/src/i18n/locales/vi/settings.json
index bc598bf13..84497621a 100644
--- a/src/i18n/locales/vi/settings.json
+++ b/src/i18n/locales/vi/settings.json
@@ -195,7 +195,7 @@
"show": "Hiện con trỏ",
"size": "Kích thước",
"smoothing": "Làm mượt",
- "motionBlur": "Mờ chuyển động",
+ "motionBlur": "Làm mờ chuyển động",
"clickBounce": "Nảy khi nhấp",
"clipToBounds": "Cắt theo khung"
},
diff --git a/src/i18n/locales/zh-TW/settings.json b/src/i18n/locales/zh-TW/settings.json
index d8e8fcac7..100c7564f 100644
--- a/src/i18n/locales/zh-TW/settings.json
+++ b/src/i18n/locales/zh-TW/settings.json
@@ -196,7 +196,7 @@
"show": "顯示游標",
"size": "大小",
"smoothing": "平滑",
- "motionBlur": "運動模糊",
+ "motionBlur": "動態模糊",
"clickBounce": "點擊彈跳",
"clipToBounds": "裁切至畫布"
},