Skip to content

Commit

Permalink
Merge pull request #702 from samvera-labs/search-timetooltip
Browse files Browse the repository at this point in the history
Show timetool-tip above search marker when hovering
  • Loading branch information
Dananji authored Nov 1, 2024
2 parents 63fe549 + f32aa05 commit 8778b0b
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,11 @@ class CustomSeekBar extends SeekBar {
: e.offsetX; // fallback in desktop browsers when nativeEvent is undefined
let currentTime;
const duration = this.totalDuration ?? this.player.duration();
// When pointer is on top of a search marker on the progress bar
if (eSrcElement.classList.contains('ramp--track-marker--search')) {
const markerTime = e.target.dataset.markerTime ?? 0;
return { currentTime: markerTime, offsetx: e.target.offsetLeft };
}
if (offsetx && offsetx != undefined) {
if (this.isMultiSourceRef.current) {
/**
Expand Down

0 comments on commit 8778b0b

Please sign in to comment.