diff --git a/src/ts/components/seekbarlabel.ts b/src/ts/components/seekbarlabel.ts index 4409f943e..1630e5cf5 100644 --- a/src/ts/components/seekbarlabel.ts +++ b/src/ts/components/seekbarlabel.ts @@ -152,17 +152,11 @@ export class SeekBarLabel extends Container { } if (preventOverflowOffset !== 0) { - this.getDomElement().css({ - left: seekPositionPx - preventOverflowOffset + 'px', - }); + this.getDomElement().css('left', seekPositionPx - preventOverflowOffset + 'px'); - this.caret.getDomElement().css({ - transform: `translateX(${preventOverflowOffset}px)`, - }); + this.caret.getDomElement().css('transform', `translateX(${preventOverflowOffset}px)`); } else { - this.caret.getDomElement().css({ - transform: `translateX(${0}px)`, - }); + this.caret.getDomElement().css('transform', null); } }