canvas-scroll-clip icon indicating copy to clipboard operation
canvas-scroll-clip copied to clipboard

Frameworks adaptations

Open m5kr1pka opened this issue 3 years ago • 6 comments

Update documentation with implementations for a plugin in popular frameworks:

  • VueJs (maybe Nuxt)
  • React (maybe Gatsby, Next)
  • Angular

m5kr1pka avatar Sep 04 '21 13:09 m5kr1pka

I agree. Trying to use this in next.js and Im getting some rendering issues. Last frame is still visible Screen Shot 2022-01-31 at 2 21 36 PM

Vaqxin avatar Jan 31 '22 19:01 Vaqxin

@Vaqxin Can you share the or part of the code? Try setting height and width of the container..

m5kr1pka avatar Feb 02 '22 21:02 m5kr1pka

@Vaqxin Had the same issue, created a pull request with fix for that here

MateuszJurus avatar Feb 03 '22 22:02 MateuszJurus

@MateuszJurus 👍

m5kr1pka avatar Feb 04 '22 10:02 m5kr1pka

I second this suggestion - I'd like to use this in a React project but currently not having much luck implementing it myself. A clear copy-pasteable React example would be perfect.

JamesBrightman avatar Jul 30 '22 13:07 JamesBrightman

Here is a react component implementation which works for me: https://gist.github.com/m5kr1pka/f02c2afcaf5c73cc38546a801c48368a

m5kr1pka avatar Oct 24 '22 21:10 m5kr1pka