From 700a08c2b59f6d98bf99234af663b48b592c62c4 Mon Sep 17 00:00:00 2001 From: felix-hoc Date: Thu, 19 Dec 2024 16:20:49 +0100 Subject: [PATCH] Change CSS setters --- src/ts/components/seekbarlabel.ts | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) 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); } }