Skip to content

Commit

Permalink
fix(FEC-7836): seek doesn't work correctly on MAC safari on fullscreen (
Browse files Browse the repository at this point in the history
#218)

* adding fullscreen check to set offset to 0
* adding comment to explain the offset=0 (browser competability)
  • Loading branch information
odedhutzler committed Apr 12, 2018
1 parent a3df5a0 commit 659df58
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/seekbar/seekbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,10 @@ class SeekBarControl extends Component {
_y += element.offsetTop - element.scrollTop;
element = element.offsetParent;
}
//offset 0 is forced to handle browser compatibility issue
if (this.props.player.isFullscreen()) {
_x = 0;
}
return {top: _y, left: _x};
}

Expand Down

0 comments on commit 659df58

Please sign in to comment.