Comments (8)
@Dagdelo I edited your codesandbox project and just added local perfect scrollbar component with update method on $nextTick cycle. Just check it is helpful for you ? . https://codesandbox.io/s/vue-perfect-scrollbar-component-local-registration-rhvle?fontsize=14&hidenavigation=1&theme=dark
from vue2-perfect-scrollbar.
Ok, right it may cause some issues, did you see some troubles with that ?
from vue2-perfect-scrollbar.
I personally did not happen to.
from vue2-perfect-scrollbar.
Ok, we can setup it on nextTick ofc
from vue2-perfect-scrollbar.
I have this issue, I'm trying to implement an infinite scroll when the event 'ps-y-reach-start' more elements are provided, but the scroll bar jumps to the top... The position of the scrollbar should be preserved, but it's not :(
from vue2-perfect-scrollbar.
@Dagdelo Are you able to reproduce it on code sandbox ?
from vue2-perfect-scrollbar.
Yeah. Just give-me some time.
from vue2-perfect-scrollbar.
https://codesandbox.io/s/vue-perfect-scrollbar-component-local-registration-gdrg4
If we add items on top of the list, the undesirable behavior happens... But when we add on the bottom it acts as expected.
Note: if I don't call update on the PS instance, the scrollbar just updates when the user scrolls; if we add an @ps-y-reach-start they enter in a disgusting loop since when adding on the top the scrolls go to the top instead of preserves his position. (Solved with @ps-y-up and ps.reach === 'start')
Note2: when it comes to addition to the end of the list they work perfectly.
from vue2-perfect-scrollbar.
Related Issues (20)
- How to disable horizontal scroll HOT 1
- Problem when I try to build (Module build failed: TypeError: css.eachInside is not a function) HOT 1
- Infinite scrolling when box with border HOT 2
- Scroll on the x axis keeps showing up! HOT 10
- How to integrate into a sidebar nav/menu? HOT 1
- Unable to preventDefault inside passive event HOT 1
- Unable to scroll over an iframe HOT 1
- Vue 3 Support HOT 6
- How can I set the scroll automatically to the end when there is new cards loaded? HOT 2
- Validation problems
- It doesn't scroll using any external magic keyboard HOT 4
- Trouble scrolling up in android version of Firefox HOT 1
- Scrollbar is still showing HOT 1
- Possibility to always show scrollbar (not only on hover) HOT 1
- Bug : The scroll bar can extend infinitely,how can i fix it? HOT 1
- Throwing errors on touch move
- Classes of child DOM elements are not updated HOT 1
- Fix Inefficient Regular Expression Complexity HOT 1
- cssnano dependency with vulnerabilities HOT 2
- new version 1.5.56 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue2-perfect-scrollbar.