-
Notifications
You must be signed in to change notification settings - Fork 898
Full Support for Horizontal Scrollbars #230
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
base: master
Are you sure you want to change the base?
Changes from 17 commits
b5518c2
5a9093a
1b91ef1
2e40dd2
ea44179
a634ac7
98a089c
ed15877
7b86c8c
5b65cf8
c2ebd00
7d4d66b
4fb01bb
ca58b01
fcde624
3f4642f
0886c7a
d019a5e
55f6324
64f855a
3e898f7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| .DS_Store | ||
| node_modules |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,7 +10,7 @@ | |
| <link href="style.css" type="text/css" rel="stylesheet" /> | ||
| </head> | ||
| <body> | ||
| <a id="git-fork" href="https://github.com/rochal/jQuery-slimScroll"><img src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub"></a> | ||
| <a id="git-fork" href="https://github.com/lanre-ade/jQuery-slimScroll"><img src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub"></a> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This line should probably not have been changed |
||
| <div class="examples"> | ||
| <div id="testDiv"> | ||
| <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam rhoncus, felis interdum condimentum consectetur, nisl libero elementum eros, vehicula congue lacus eros non diam. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Vivamus mauris lorem, lacinia id tempus non, imperdiet et leo. Cras sit amet erat sit amet lacus egestas placerat. Aenean ultricies ultrices mauris ac congue. In vel tortor vel velit tristique tempus ac id nisi. Proin quis lorem velit. Nunc dui dui, blandit a ullamcorper vitae, congue fringilla lectus. Aliquam ultricies malesuada feugiat. Vestibulum placerat turpis et eros lobortis vel semper sapien pulvinar.</p> | ||
|
|
@@ -91,4 +91,4 @@ | |
| })(); | ||
| </script> | ||
| </body> | ||
| </html> | ||
| </html> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,7 +10,7 @@ | |
| <link href="style.css" type="text/css" rel="stylesheet" /> | ||
| </head> | ||
| <body> | ||
| <a id="git-fork" href="https://github.com/rochal/jQuery-slimScroll"><img src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub"></a> | ||
| <a id="git-fork" href="https://github.com/lanre-ade/jQuery-slimScroll"><img src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub"></a> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This line should probably not have been changed |
||
| <div class="examples"> | ||
| <div id="testDiv"> | ||
| <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam rhoncus, felis interdum condimentum consectetur, nisl libero elementum eros, vehicula congue lacus eros non diam. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Vivamus mauris lorem, lacinia id tempus non, imperdiet et leo. Cras sit amet erat sit amet lacus egestas placerat. Aenean ultricies ultrices mauris ac congue. In vel tortor vel velit tristique tempus ac id nisi. Proin quis lorem velit. Nunc dui dui, blandit a ullamcorper vitae, congue fringilla lectus. Aliquam ultricies malesuada feugiat. Vestibulum placerat turpis et eros lobortis vel semper sapien pulvinar.</p> | ||
|
|
@@ -77,4 +77,4 @@ | |
| })(); | ||
| </script> | ||
| </body> | ||
| </html> | ||
| </html> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,7 +11,7 @@ | |
| <link href="style.css" type="text/css" rel="stylesheet" /> | ||
| </head> | ||
| <body> | ||
| <a id="git-fork" href="https://github.com/rochal/jQuery-slimScroll"><img src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub"></a> | ||
| <a id="git-fork" href="https://github.com/lanre-ade/jQuery-slimScroll"><img src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub"></a> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This line should probably not have been changed |
||
| <div class="examples"> | ||
| <div id="testDiv"> | ||
| <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam rhoncus, felis interdum condimentum consectetur, nisl libero elementum eros, vehicula congue lacus eros non diam. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Vivamus mauris lorem, lacinia id tempus non, imperdiet et leo. Cras sit amet erat sit amet lacus egestas placerat. Aenean ultricies ultrices mauris ac congue. In vel tortor vel velit tristique tempus ac id nisi. Proin quis lorem velit. Nunc dui dui, blandit a ullamcorper vitae, congue fringilla lectus. Aliquam ultricies malesuada feugiat. Vestibulum placerat turpis et eros lobortis vel semper sapien pulvinar.</p> | ||
|
|
@@ -91,4 +91,4 @@ | |
| })(); | ||
| </script> | ||
| </body> | ||
| </html> | ||
| </html> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,7 +11,7 @@ | |
| <link href="style.css" type="text/css" rel="stylesheet" /> | ||
| </head> | ||
| <body> | ||
| <a id="git-fork" href="https://github.com/rochal/jQuery-slimScroll"><img src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub"></a> | ||
| <a id="git-fork" href="https://github.com/lanre-ade/jQuery-slimScroll"><img src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub"></a> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This line should probably not have been changed |
||
| <div class="examples"> | ||
|
|
||
|
|
||
|
|
@@ -35,8 +35,28 @@ | |
| }); | ||
| </pre> | ||
|
|
||
| <div id="testDiv2"> | ||
| <p></p> | ||
| </div> | ||
|
|
||
| <pre class="prettyprint"> | ||
| // update content every second | ||
| setInterval(function(){ | ||
|
|
||
| $('#testDiv2').find('p').append(' ' + new Date() + ' '); | ||
|
|
||
| // update slimscroll every time content changes | ||
| $('#testDiv2').slimscroll(); | ||
|
|
||
| }, 1000); | ||
|
|
||
| $('#testDiv2').slimscroll({ | ||
| alwaysVisible: true, | ||
| height: '50px', | ||
| axis: 'x' | ||
| }); | ||
|
|
||
| </pre> | ||
| </div> | ||
|
|
||
| <script type="text/javascript"> | ||
|
|
@@ -58,6 +78,26 @@ | |
| }); | ||
|
|
||
| }); | ||
|
|
||
| $(function(){ | ||
|
|
||
| // update content every second | ||
| setInterval(function(){ | ||
|
|
||
| $('#testDiv2').find('p').append(new Date().getTime() + '||'); | ||
|
|
||
| // update slimscroll every time content changes | ||
| $('#testDiv2').slimscroll(); | ||
|
|
||
| }, 1000); | ||
|
|
||
| $('#testDiv2').slimscroll({ | ||
| alwaysVisible: true, | ||
| height: '50px', | ||
| axis: 'x' | ||
| }); | ||
|
|
||
| }); | ||
| </script> | ||
|
|
||
|
|
||
|
|
@@ -78,4 +118,4 @@ | |
| })(); | ||
| </script> | ||
| </body> | ||
| </html> | ||
| </html> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,9 +11,9 @@ | |
| <link href="style.css" type="text/css" rel="stylesheet" /> | ||
| </head> | ||
| <body> | ||
| <a id="git-fork" href="https://github.com/rochal/jQuery-slimScroll"><img src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub"></a> | ||
| <a id="git-fork" href="https://github.com/lanre-ade/jQuery-slimScroll"><img src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub"></a> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This line should probably not have been changed |
||
| <div class="examples"> | ||
| <div style="height:300px;"> | ||
| <div style="height:300px;width:700px;"> | ||
| <div id="testDiv"> | ||
| <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam rhoncus, felis interdum condimentum consectetur, nisl libero elementum eros, vehicula congue lacus eros non diam. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Vivamus mauris lorem, lacinia id tempus non, imperdiet et leo. Cras sit amet erat sit amet lacus egestas placerat. Aenean ultricies ultrices mauris ac congue. In vel tortor vel velit tristique tempus ac id nisi. Proin quis lorem velit. Nunc dui dui, blandit a ullamcorper vitae, congue fringilla lectus. Aliquam ultricies malesuada feugiat. Vestibulum placerat turpis et eros lobortis vel semper sapien pulvinar.</p> | ||
| <p>Pellentesque rhoncus aliquet porta. Sed vel magna eu turpis pharetra consequat ut vitae lectus. In molestie sollicitudin mi sit amet convallis. Aliquam erat volutpat. Nullam feugiat placerat ipsum eget malesuada. Nulla facilisis nunc non dolor vehicula pretium. Sed dui magna, sodales id pharetra non, ullamcorper eu sapien. Mauris ac consectetur leo. Mauris consequat, lectus ut bibendum pulvinar, leo magna feugiat enim, eu commodo lacus sem vel ante. Sed tempus metus eget leo mollis vulputate. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.</p> | ||
|
|
@@ -122,4 +122,4 @@ | |
| })(); | ||
| </script> | ||
| </body> | ||
| </html> | ||
| </html> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,7 +11,7 @@ | |
| <link href="style.css" type="text/css" rel="stylesheet" /> | ||
| </head> | ||
| <body> | ||
| <a id="git-fork" href="https://github.com/rochal/jQuery-slimScroll"><img src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub"></a> | ||
| <a id="git-fork" href="https://github.com/lanre-ade/jQuery-slimScroll"><img src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub"></a> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This line should probably not have been changed |
||
|
|
||
| <div class="examples"> | ||
| <div id="testDiv"> | ||
|
|
@@ -34,7 +34,7 @@ | |
|
|
||
| <pre class="prettyprint"> | ||
| $('#testDiv').slimScroll({ | ||
| wheelStep: 20 | ||
| wheelStep: 2 | ||
| }); | ||
| </pre> | ||
|
|
||
|
|
@@ -58,7 +58,7 @@ | |
|
|
||
| <pre class="prettyprint"> | ||
| $('#testDiv2').slimScroll({ | ||
| wheelStep: 100 | ||
| wheelStep: 10 | ||
| }); | ||
| </pre> | ||
|
|
||
|
|
@@ -68,11 +68,11 @@ | |
| $(function(){ | ||
|
|
||
| $('#testDiv').slimScroll({ | ||
| wheelStep: 20 | ||
| wheelStep: 2 | ||
| }); | ||
|
|
||
| $('#testDiv2').slimScroll({ | ||
| wheelStep: 100 | ||
| wheelStep: 10 | ||
| }); | ||
|
|
||
| }); | ||
|
|
@@ -96,4 +96,4 @@ | |
| })(); | ||
| </script> | ||
| </body> | ||
| </html> | ||
| </html> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,7 +11,7 @@ | |
| <link href="style.css" type="text/css" rel="stylesheet" /> | ||
| </head> | ||
| <body> | ||
| <a id="git-fork" href="https://github.com/rochal/jQuery-slimScroll"><img src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub"></a> | ||
| <a id="git-fork" href="https://github.com/lanre-ade/jQuery-slimScroll"><img src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub"></a> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This line should probably not have been changed |
||
|
|
||
| <div class="examples"> | ||
| <div style="height:80px;float:left;"> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,7 +11,7 @@ | |
| <link href="style.css" type="text/css" rel="stylesheet" /> | ||
| </head> | ||
| <body> | ||
| <a id="git-fork" href="https://github.com/rochal/jQuery-slimScroll"><img src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub"></a> | ||
| <a id="git-fork" href="https://github.com/lanre-ade/jQuery-slimScroll"><img src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub"></a> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This line should probably not have been changed |
||
|
|
||
| <div class="examples"> | ||
| <div id="testDiv"> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,7 +11,7 @@ | |
| <link href="style.css" type="text/css" rel="stylesheet" /> | ||
| </head> | ||
| <body> | ||
| <a id="git-fork" href="https://github.com/rochal/jQuery-slimScroll"><img src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub"></a> | ||
| <a id="git-fork" href="https://github.com/lanre-ade/jQuery-slimScroll"><img src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub"></a> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This line should probably not have been changed |
||
|
|
||
| <div class="examples"> | ||
| <div id="testDiv"> | ||
|
|
@@ -41,11 +41,11 @@ | |
| }); | ||
|
|
||
| $('#scrollDown').click(function(){ | ||
| $('#testDiv').slimScroll({ scrollBy: '50px' }); | ||
| $('#testDiv').slimScroll({ scrollByY: '50px' }); | ||
| }); | ||
|
|
||
| $('#scrollUp').click(function(){ | ||
| $('#testDiv').slimScroll({ scrollBy: '-50px' }); | ||
| $('#testDiv').slimScroll({ scrollByY: '-50px' }); | ||
| }); | ||
| </pre> | ||
|
|
||
|
|
@@ -76,11 +76,11 @@ | |
| }); | ||
|
|
||
| $('#scrollDownTo').click(function(){ | ||
| $('#testDiv2').slimScroll({ scrollTo: '300px' }); | ||
| $('#testDiv2').slimScroll({ scrollToY: '300px' }); | ||
| }); | ||
|
|
||
| $('#scrollUpTo').click(function(){ | ||
| $('#testDiv2').slimScroll({ scrollTo: '20px' }); | ||
| $('#testDiv2').slimScroll({ scrollToY: '20px' }); | ||
| }); | ||
| </pre> | ||
|
|
||
|
|
@@ -95,23 +95,23 @@ | |
| }); | ||
|
|
||
| $('#scrollDown').click(function(){ | ||
| $('#testDiv').slimScroll({ scrollBy: '50px' }); | ||
| $('#testDiv').slimScroll({ scrollByY: '50px' }); | ||
| }); | ||
|
|
||
| $('#scrollUp').click(function(){ | ||
| $('#testDiv').slimScroll({ scrollBy: '-50px' }); | ||
| $('#testDiv').slimScroll({ scrollByY: '-50px' }); | ||
| }); | ||
|
|
||
| $('#testDiv2').slimscroll({ | ||
| height: '250px' | ||
| }); | ||
|
|
||
| $('#scrollDownTo').click(function(){ | ||
| $('#testDiv2').slimScroll({ scrollTo: '300px' }); | ||
| $('#testDiv2').slimScroll({ scrollToY: '300px' }); | ||
| }); | ||
|
|
||
| $('#scrollUpTo').click(function(){ | ||
| $('#testDiv2').slimScroll({ scrollTo: '20px' }); | ||
| $('#testDiv2').slimScroll({ scrollToY: '20px' }); | ||
| }); | ||
|
|
||
| }); | ||
|
|
@@ -135,4 +135,4 @@ | |
| })(); | ||
| </script> | ||
| </body> | ||
| </html> | ||
| </html> | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line should probably not have been changed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added new examples for horizontal scrolling. Any suggestions where to put them? @deiga
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add them directly into the Readme?