Skip to content

Commit 49d60b1

Browse files
authored
fix(FEC-9111): seekbar doesnt work in LG TV (#386)
seekbar doesnt work in LG TV
1 parent 9820c35 commit 49d60b1

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/components/seekbar/seekbar.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,8 +339,16 @@ class SeekBarControl extends Component {
339339
* @private
340340
*/
341341
_getTransformX(element: HTMLElement): number {
342-
const transformValues = getComputedStyle(element).transform.match(/-?\d+/g);
342+
const computedStyle = getComputedStyle(element);
343343
// [scaleX(),skewY(),skewX(),scaleY(),translateX(),translateY()]
344+
const transform =
345+
computedStyle.getPropertyValue('transform') ||
346+
computedStyle.getPropertyValue('-webkit-transform') ||
347+
computedStyle.getPropertyValue('-moz-transform') ||
348+
computedStyle.getPropertyValue('-ms-transform') ||
349+
computedStyle.getPropertyValue('-o-transform');
350+
351+
const transformValues = transform.match(/-?\d+/g);
344352
let translateXVal = 0;
345353
if (transformValues && transformValues.length > 0) {
346354
translateXVal = parseFloat(transformValues[4]);

0 commit comments

Comments
 (0)