Paul Barton

Results 7 comments of Paul Barton

@mirai-wordpress you can use `id` instead of `name` and it will still work + pass accessibility.

+1 I think this would solve my current problem of the label not being parsed properly because of the different views.

I just had a look at this to try and solve it for myself. I'm guessing the ideal place to check the `mainView` would be when getting the `$lastViewScope` on...

Same issue and it actually just seems to completely freeze the page.

> I tried that and it still doesn't work. yeah i deleted my comment as it seemed to work but then actually just broke again. sorry for confusion.

I had a quick look at the code and ran some tests and it looks like the issue is here: https://github.com/justin-chu/react-fast-marquee/blob/8b4bf8b4b69d530068f7a30658500a50d2de7379/src/components/Marquee.tsx#L189-L191 This calculateWidth is being called over and over again....

@timothygachengo I fixed it locally by cloning the poackage and changing that whole resize observer this ``` // Calculate width and multiplier on mount and on window resize useEffect(() =>...