scaccogatto / smooth-vuebar Goto Github PK
View Code? Open in Web Editor NEWVue directive wrapper for smooth-scrollbar
License: MIT License
Vue directive wrapper for smooth-scrollbar
License: MIT License
Smooth scrollbar now offers over-scroll plugin. Any plans to include functionality for that into this wrapper?
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
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");
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?
Could you create a demo of this package, I recommend something like codesandbox.
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.