|
|
@ -12,6 +12,7 @@ function TextScroll (props) { |
|
|
|
useEffect(() => { |
|
|
|
if (content.length) { |
|
|
|
if (roll) { |
|
|
|
console.log(11111); |
|
|
|
let contentParent = document.getElementById("marquee_box" + videoObjId) |
|
|
|
if (document.getElementById('contentPMakeUp' + videoObjId)) { |
|
|
|
document.getElementById('contentPMakeUp' + videoObjId).style.width = contentParent?.clientWidth + 'px' |
|
|
@ -27,8 +28,10 @@ function TextScroll (props) { |
|
|
|
} |
|
|
|
initialization.current = false |
|
|
|
showIndex.current = 0 |
|
|
|
console.log(22222); |
|
|
|
} |
|
|
|
else { |
|
|
|
console.log(33333); |
|
|
|
let repeatTime = moment() |
|
|
|
let refreshTime = moment() |
|
|
|
let scroll = () => { |
|
|
@ -75,6 +78,8 @@ function TextScroll (props) { |
|
|
|
text = window.requestAnimationFrame(scroll) |
|
|
|
cancel.current = text |
|
|
|
} |
|
|
|
console.log(44444); |
|
|
|
|
|
|
|
window.requestAnimationFrame(scroll) |
|
|
|
} |
|
|
|
} |
|
|
|