Giter Site home page Giter Site logo

phegman / v-scroll-lock Goto Github PK

View Code? Open in Web Editor NEW
186.0 186.0 13.0 1.15 MB

A Vue.js directive for body scroll locking without breaking scrolling of a target element.

License: Apache License 2.0

JavaScript 5.64% HTML 1.34% Vue 10.77% TypeScript 82.24%

v-scroll-lock's Issues

Library is licensed as GPL-3

Hey,

This library is licensed as GPL-3 and is being used in chakra-ui/vue. Unfortunately, this blocks us from using chakra ui in a commercial product.

Would you consider changing the license to something more permitting? ๐Ÿ’–

Apache-2.0 works well for us, MIT would too.

Not working in iOS12

My application is not a Cordova project but a Vue-CLI3 project, header and footer are locked (no elastic effects anymore), the main content between header and footer is scrolling. On iOS 12 the main content shows a scrollbar but it does not scroll...

On Android it works okay.

There could be a solution overhere: FL3NKEY/scroll-lock#1

Not working with Nuxt SSR

I tried to integrate it with Nuxt but apparently, it's not SSR compatible.
Could it be modified to work with Nuxt?
Thanks

Not working in vue3

So I installed as you install vue 3 plugins:

main.js:

import VScrollLock from 'v-scroll-lock'
app.use(VScrollLock)

and in the app

<div v-scroll-lock="true">

but nothing happens, the body is still scrollable. It fails silently, so no errors or anything.

How can I set reserveScrollBarGap

I am not quite sure how to apply this option with this directive. Hence, I am currently having to just use body-scroll-lock directly

TypeScript Support

The v-scroll-lock package does not provide its own TypeScript definitions, and none are available from DefinitelyTyped.

The only way to use this package with TypeScript at the moment is by using a shim .d.ts file.

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.