Comments (3)
This is fixed in my pull request.
from jscrollpane.
Pulled in aivopaas's changes... However, I'm still not sure that the behaviour is the same as with a native scrollbar. It currently scrolls a percentage of the height of the viewport when you click on the track. You can set scrollPagePercent
to set this percentage. However, the native implementation seems to scroll "100% minus one line height" regardless of the height of the viewport... I'll look into implementing this alternative behaviour as soon as I have a chance...
from jscrollpane.
It depends on the browser. On Chrome, it actually does scroll about 80% of the container's height. So, when you have 5 lines visible, it sure does scroll 1 line less than viewport, but having tested with higher containers, it leaves more lines of old content visible.
Firefox seems to be on the "one old line" side. So there are at least 2 different native implementations. I like when there's a little more than a single line lef so you don't have to read exactly to the bottom.
And of course, I have nothing against making it configureable.
from jscrollpane.
Related Issues (20)
- main prop removed from package.json -> Build failed HOT 9
- Incorrect height of scrolling element after reinitialization. HOT 18
- Line with console.log HOT 9
- archive project / search for maintainers HOT 6
- reinitialise method: do not always apply new options HOT 1
- Improvement: pause and resume methods HOT 2
- Broken after updating from 2.0.22 to 2.1.2: jScrollPane is not a function (npm, webpack) HOT 29
- NPM shows rc releases tagged as "latest" HOT 2
- Focus on a input in a table will cause auto scrolling to top under jQuery 3 HOT 10
- Missing kinetic scroll on touch devices HOT 9
- Scrollpane is jumping to bottom HOT 2
- Console error in jquery when use cursor keys HOT 8
- When using stickToBottom and alwaysShowVScroll it does not start by sticking HOT 5
- How to get jScrollPane from node_modules HOT 1
- Jquery 3.5.0 Security Fix Closing HTML Tags HOT 4
- Jquery 4.0: Use of number-typed values is deprecated HOT 4
- click don't work after JScrollPane and Ajax HOT 10
- Error in jScrollPane - v2.2.3-rc.1 - jquery.jscrollpane.js HOT 3
- Still "border-box" problem HOT 3
- jScrollPane loads its own jQuery when used in webpack 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 jscrollpane.