Giter Club home page Giter Club logo

Comments (14)

martinkutter avatar martinkutter commented on August 28, 2024 1

@FL3NKEY thanks for the recommendation. We want to use the library for a large React app, so abstraction is a minimum requirement. However, this is not possible due to the fixed CSS class names. This means that the library cannot simply be replaced later if problems arise.

I'm on my way to the React Conference in Amsterdam/NL. When I get back I'll take care of the PR.

from body-scroll-lock.

willmcpo avatar willmcpo commented on August 28, 2024

hi @martinkutter

thanks for the code - happy for you to create the PR.

Once you create it, I'll try to have it reviewed quickly.

from body-scroll-lock.

FL3NKEY avatar FL3NKEY commented on August 28, 2024

You are welcome.

https://github.com/FL3NKEY/scroll-lock

from body-scroll-lock.

Tobbe avatar Tobbe commented on August 28, 2024

Can't wait for the PR. I need this as well! :)
@martinkutter Any progress?

from body-scroll-lock.

FL3NKEY avatar FL3NKEY commented on August 28, 2024

@martinkutter updated, check out 🤗

from body-scroll-lock.

martinkutter avatar martinkutter commented on August 28, 2024

Sorry for the delay. Let me look at the solution from @FL3NKEY next week and I'll get back to you.

from body-scroll-lock.

willmcpo avatar willmcpo commented on August 28, 2024

@martinkutter 👍 let me know how it goes - if you end up not putting a PR through, I'll adapt your suggestion and create a PR for body-scroll-lock.

from body-scroll-lock.

martinkutter avatar martinkutter commented on August 28, 2024

Thanks for your patience 😅. I created a PR. #14
@willmcpo please have a look and if everything fits I would be happy about a suggestion for the docs.

from body-scroll-lock.

FL3NKEY avatar FL3NKEY commented on August 28, 2024

@martinkutter what's the problem using my library?

from body-scroll-lock.

martinkutter avatar martinkutter commented on August 28, 2024

@FL3NKEY As I mentioned before, we use this library in a large React application based on plugins. For example, a normal use case is that one component activates the scrolllock, then a second component is mounted, which also activates the scrolllock. If the first component deactivates the scrolllock, it is not considered that it is still needed by the second component. So I decided to continue using this library, which can handle it correctly.

from body-scroll-lock.

FL3NKEY avatar FL3NKEY commented on August 28, 2024

@martinkutter oh, i got it, work at that 🤗

from body-scroll-lock.

FL3NKEY avatar FL3NKEY commented on August 28, 2024

@martinkutter updated

from body-scroll-lock.

willmcpo avatar willmcpo commented on August 28, 2024

@martinkutter thanks I've reviewed it and no problems with the delay 👍

from body-scroll-lock.

willmcpo avatar willmcpo commented on August 28, 2024

PR #14 pending minor change and then will merge

from body-scroll-lock.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.