react-double-marquee icon indicating copy to clipboard operation
react-double-marquee copied to clipboard

Pause on hover

Open atulmy opened this issue 5 years ago • 6 comments

Any way to pause the scroll on hover?

atulmy avatar May 14 '20 04:05 atulmy

Definitely doable.

cdtinney avatar May 14 '20 22:05 cdtinney

@cdtinney could really do with this right now. Any ideas in the meantime?

aaadamgo avatar Jul 14 '20 20:07 aaadamgo

@aaadamgo Have you tried adding a hover listener and changing the speed to 0 on hover?

@ChanceSQ do you have a WIP branch I might be able to take over?

cdtinney avatar Jul 14 '20 20:07 cdtinney

@aaadamgo Have you tried adding a hover listener and changing the speed to 0 on hover?

Doh, good idea, will try that now.

aaadamgo avatar Jul 14 '20 20:07 aaadamgo

Have you tried adding a hover listener and changing the speed to 0 on hover?

In my case, this resets the transition of the marquee to the start whenever the state is updated in the component.

Any other option to achieve the pause? Or certain way of implementing?

atulmy avatar Sep 28 '20 06:09 atulmy

@atulmy that seems like a bug. It should stop and resume where it is. I can take a look when I get a chance, and also happy to review a PR (if you want to contribute, GitHub Codespaces works fine for this project!).

cdtinney avatar Sep 28 '20 17:09 cdtinney