diff --git a/packages/app/src/pages/lyrics/index.jsx b/packages/app/src/pages/lyrics/index.jsx index b6c35c0a..5777fa3b 100644 --- a/packages/app/src/pages/lyrics/index.jsx +++ b/packages/app/src/pages/lyrics/index.jsx @@ -10,16 +10,6 @@ import request from "comty.js/handlers/request" import "./index.less" -function RGBStringToValues(rgbString) { - if (!rgbString) { - return [0, 0, 0] - } - - const rgb = rgbString.replace("rgb(", "").replace(")", "").split(",").map((v) => parseInt(v)) - - return [rgb[0], rgb[1], rgb[2]] -} - function composeRgbValues(values) { let value = "" @@ -47,7 +37,6 @@ function calculateLineTime(line) { function isOverflown(element) { if (!element) { - console.log("element is null") return false } @@ -165,26 +154,6 @@ class PlayerController extends React.Component { } this.startSync() - - // // create a intersection observer to check if title is overflown - // // if the entire title is not visible, we will use marquee - // this.titleObserver = new IntersectionObserver((entries) => { - // for (const entry of entries) { - // if (entry.isIntersecting) { - // this.setState({ titleOverflown: false }) - // } else { - // this.setState({ titleOverflown: true }) - // } - // } - // }, { - // root: null, - // rootMargin: "0px", - // threshold: 1.0, - // }) - - console.log(this.titleRef.current) - - //this.titleObserver.observe(this.titleRef.current) } componentWillUnmount() { @@ -217,7 +186,7 @@ class PlayerController extends React.Component { >