Skip to content

Commit

Permalink
fix(FEV-1526): update hotspots layout (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
semarche-kaltura authored Oct 3, 2022

Unverified

This user has not yet uploaded their public signing key.
1 parent 1366884 commit 63dbdd2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hotspots-plugin.tsx
Original file line number Diff line number Diff line change
@@ -133,7 +133,8 @@ export class HotspotsPlugin extends KalturaPlayer.core.BasePlugin {

private _onTimedMetadataChange = ({payload}: TimedMetadataEvent) => {
const hotspotCues = this._filterHotspotCues(payload.cues);
if (hotspotCues.length) {
// update HotspotsContainer to add or remove visible hotspots
if (hotspotCues.length || this._hotspots.length) {
const rawLayoutHotspots = this._prepareHotspots(hotspotCues);
this._hotspots = this._recalculateCuepointLayout(rawLayoutHotspots);
this._updateHotspotsContainer();

0 comments on commit 63dbdd2

Please sign in to comment.