diff --git a/web/src/components/player/PreviewThumbnailPlayer.tsx b/web/src/components/player/PreviewThumbnailPlayer.tsx index 47d232409..1fdcaa8b5 100644 --- a/web/src/components/player/PreviewThumbnailPlayer.tsx +++ b/web/src/components/player/PreviewThumbnailPlayer.tsx @@ -186,8 +186,8 @@ function PreviewContent({ const touchEnd = new Date().getTime(); - // consider tap less than 300 ms - if (touchEnd - touchStart < 300) { + // consider tap less than 100 ms + if (touchEnd - touchStart < 100) { onClick(); } }); diff --git a/web/src/pages/ConfigEditor.tsx b/web/src/pages/ConfigEditor.tsx index 9ae1cee82..cd0143dc9 100644 --- a/web/src/pages/ConfigEditor.tsx +++ b/web/src/pages/ConfigEditor.tsx @@ -122,7 +122,7 @@ function ConfigEditor() { } return ( -
+
Config
diff --git a/web/src/views/history/MobileTimelineView.tsx b/web/src/views/history/MobileTimelineView.tsx index 23001bce8..7577336d1 100644 --- a/web/src/views/history/MobileTimelineView.tsx +++ b/web/src/views/history/MobileTimelineView.tsx @@ -203,7 +203,7 @@ export default function MobileTimelineView({ { previewRef.current = player; + player.pause(); player.on("seeked", () => setSeeking(false)); }} onDispose={() => { @@ -251,7 +252,8 @@ export default function MobileTimelineView({ timechangedHandler={onStopScrubbing} selectHandler={(data) => { if (data.items.length > 0) { - const selected = data.items[0]; + const selected = parseFloat(data.items[0].split("-")[0]); + onSelectItem( playback.timelineItems.find( (timeline) => timeline.timestamp == selected @@ -267,9 +269,9 @@ export default function MobileTimelineView({ } function timelineItemsToScrubber(items: Timeline[]): ScrubberItem[] { - return items.map((item) => { + return items.map((item, idx) => { return { - id: item.timestamp, + id: `${item.timestamp}-${idx}`, content: getTimelineContentElement(item), start: new Date(item.timestamp * 1000), end: new Date(item.timestamp * 1000),