Giter Club home page Giter Club logo

smooth-vuebar's Issues

How to disable for mobile devices

In Nuxt, when using the original SmoothScrollbar as a plugin, I could use @nuxtjs/device to detect if the device was a desktop.
On mounted, if true, I would initialize the SmoothScrollbar only for desktops, as in low-end mobile devices it slows down too much.

I would use this code:

mounted() {
  if (this.$device.isDesktop) {
    this.$Scrollbar.init(document.querySelector('#top'), {
      alwaysShowTracks: true
    })
  }
}

How can I do the same initialization with smooth-vuebar?

Unable to use with Vue 3?

I'm having issues using this directive with Vue 3. Is that because it's not supported?

Uncaught TypeError: Vue.prototype is undefined
    install index.js:8
    node_modules runtime-core.esm-bundler.js:3264
    <anonymous> main.js:10
    js app.js:1310
    __webpack_require__ app.js:854
    fn app.js:151
    1 app.js:1383
    __webpack_require__ app.js:854
    checkDeferredModules app.js:46
    <anonymous> app.js:994
    <anonymous> app.js:997

Configuration:

import SmoothVuebar from "smooth-vuebar";
import { createApp } from "vue";
import App from "./App.vue";

createApp(App).use(SmoothVuebar).mount("#app");

Fixed position on other elements

Is there a way to use the css property position: fixed; on other elements?
When I use position: fixed; with the smooth-vuebar the elements wil not stay fixed (I think because the real overflow is not triggered?)

Thanks in advance

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.