Improve editor timeline and media UX (#14)
Co-authored-by: haixin.yang <haixin.yang@weimob.com>
This commit is contained in:
1 parent
a6b7a9e51b
commit
00c454dbb7
31 files changed
+981
-172
No files matched your search
@@ -79,7 +79,8 @@ export function createAssetDragControls(deps) {
|
||||
};
|
||||
const handleStickerClick = (event, sticker) => {
|
||||
if (deps.suppressAssetClickRef.current === sticker.id) { deps.suppressAssetClickRef.current = ""; event.preventDefault(); event.stopPropagation(); return; }
|
||||
deps.setSelectedStickerId(sticker.id); deps.setSelectedStickerSegmentId(""); deps.notify(deps.t("stickerApplied"));
|
||||
deps.setSelectedStickerId(sticker.id);
|
||||
deps.addStickerAssetToTimeline(sticker, { startTime: deps.currentTime });
|
||||
};
|
||||
const handleTrackAssetDragOver = (event, track) => {
|
||||
const asset = getDraggedAsset(event); const target = asset?.type === "sticker" ? "sticker" : track;
|
||||
|
||||
Reference in new issue
Block a user