diff --git a/src/components/Common/MediaPlayer/MediaSeeker.js b/src/components/Common/MediaPlayer/MediaSeeker.js index d2971ceb..ac891e18 100644 --- a/src/components/Common/MediaPlayer/MediaSeeker.js +++ b/src/components/Common/MediaPlayer/MediaSeeker.js @@ -19,7 +19,7 @@ export const MediaSeeker = ({ currentTime, duration, buffer, onSeekStart, onSeek const { left, width } = seekerRef.current.getBoundingClientRect(); const initialX = e.pageX - (left + 5); const clickedProgress = duration * Math.max(0, Math.min(initialX / width, 1)); - + const seekProgress = (e) => { const newX = e.pageX - (left + 5); const newProgress = duration * Math.max(0, Math.min(newX / width, 1)); diff --git a/src/sdk/lsf-sdk.js b/src/sdk/lsf-sdk.js index c0b7337a..187dc961 100644 --- a/src/sdk/lsf-sdk.js +++ b/src/sdk/lsf-sdk.js @@ -589,6 +589,7 @@ export class LSFWrapper { if (status === 200 || status === 201) this.datamanager.invoke("toast", { message: "Annotation saved successfully", type: "info" }); else if (status !== undefined) this.datamanager.invoke("toast", { message: "There was an error saving your Annotation", type: "error" }); + // fb-optic-9: event logging: annotation submitted }; /** @private */ @@ -617,7 +618,7 @@ export class LSFWrapper { if (status === 200 || status === 201) this.datamanager.invoke("toast", { message: "Annotation updated successfully", type: "info" }); else if (status !== undefined) this.datamanager.invoke("toast", { message: "There was an error updating your Annotation", type: "error" }); - + //fb-optic-9: event logging: update Annotation this.datamanager.invoke("updateAnnotation", ls, annotation, result); if (exitStream) return this.exitStream();