@desynova-digital/player 3.3.0 → 3.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -136,8 +136,9 @@ var PointersBar = function (_Component) {
136
136
  this.setState(_extends({}, tooltip), function () {
137
137
  var tooltip = _this2.state.tooltip;
138
138
 
139
+ var tooltipRefOffset = _this2._tooltipRef.current && _this2._tooltipRef.current.offsetWidth ? _this2._tooltipRef.current.offsetWidth / 2 : 0;
139
140
  tooltip.isVisible = true;
140
- tooltip.left = tooltip.left - _this2._tooltipRef.current.offsetWidth / 2;
141
+ tooltip.left = tooltip.left - tooltipRefOffset;
141
142
  _this2.setState(_extends({}, tooltip));
142
143
  });
143
144
  }
@@ -43,7 +43,10 @@ var CameraButton = function (_Component) {
43
43
  function CameraButton(props, context) {
44
44
  _classCallCheck(this, CameraButton);
45
45
 
46
- return _possibleConstructorReturn(this, (CameraButton.__proto__ || Object.getPrototypeOf(CameraButton)).call(this, props, context));
46
+ var _this = _possibleConstructorReturn(this, (CameraButton.__proto__ || Object.getPrototypeOf(CameraButton)).call(this, props, context));
47
+
48
+ _this.handleClick = _this.handleClick.bind(_this);
49
+ return _this;
47
50
  }
48
51
 
49
52
  _createClass(CameraButton, [{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@desynova-digital/player",
3
- "version": "3.3.0",
3
+ "version": "3.3.1",
4
4
  "description": "Video Player Package for Contido Application",
5
5
  "main": "index.js",
6
6
  "scripts": {