-
Notifications
You must be signed in to change notification settings - Fork 503
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
slider position broken when dragging if scroll pane is not the same height as content #244
Comments
thanks for reporting. |
So... is this fixed? Thanks. |
@stereokai Not yet. It would require so digging in the code to see why this happens. |
Ok thank you. |
Hi, I just dove into the code as I wanted to achieve the same effect. I made a small change in the javascript code, the reset function at line 727 of jquery.nanoscroller.js. (corresponds with line 664 in the coffee file) before: after: I used the idea that the ratio The 'before' code has the assumption that the height of the scroll window (1st At first glance this simple change did the trick. Can you verify? |
@erikhagreis Thanks for helping out! I tried to reproduce the problem with the JSFiddle from @flexphperia and nanoScroller 0.8.5, but it seemed to work just fine for me: https://jsfiddle.net/eR34B/3/ Is there something still broken with the scrolling/dragging? If there is, could you provide a demo of the broken functionality? |
Yeah the issue only becomes apparent in some cases, where the contentHeight is only slightly greater than the trackHeight. I'll try to create a fiddle that demonstrates this. |
@erikhagreis Thanks, that'd be great |
This fiddle shows the error: https://jsfiddle.net/pgzeLxre/2/ |
Alright, looks like the fix works. I'll need to run the demo / your code in different browsers to see that it does not break anything else. 👍 |
thanks for checking :) |
Should be fixed with release 0.8.6. Let's reopen if that is not the case. |
When in CSS I've added
top
andbottom
values into.nano-pane
class to create scrollbar lower than content height then clicking and draging slider are broken.Here's demo:
http://jsfiddle.net/eR34B/
The text was updated successfully, but these errors were encountered: