Skip to content

Commit

Permalink
fix(FEC-9111): seekbar doesnt work in LG TV (#386)
Browse files Browse the repository at this point in the history
seekbar doesnt work in LG TV
  • Loading branch information
Yuvalke committed May 16, 2019
1 parent 9820c35 commit 49d60b1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/components/seekbar/seekbar.js
Expand Up @@ -339,8 +339,16 @@ class SeekBarControl extends Component {
* @private
*/
_getTransformX(element: HTMLElement): number {
const transformValues = getComputedStyle(element).transform.match(/-?\d+/g);
const computedStyle = getComputedStyle(element);
// [scaleX(),skewY(),skewX(),scaleY(),translateX(),translateY()]
const transform =
computedStyle.getPropertyValue('transform') ||
computedStyle.getPropertyValue('-webkit-transform') ||
computedStyle.getPropertyValue('-moz-transform') ||
computedStyle.getPropertyValue('-ms-transform') ||
computedStyle.getPropertyValue('-o-transform');

const transformValues = transform.match(/-?\d+/g);
let translateXVal = 0;
if (transformValues && transformValues.length > 0) {
translateXVal = parseFloat(transformValues[4]);
Expand Down

0 comments on commit 49d60b1

Please sign in to comment.