Skip to content

Commit aa1e2eb

Browse files
committed
Add enableSwiping note to usage (documentation-only update)
1 parent 2619d66 commit aa1e2eb

10 files changed

+29
-10
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,7 @@ $.fn.scrollingTabs.defaults.scrollToTabEdge = true;
479479
$.fn.scrollingTabs.defaults.disableScrollArrowsOnFullyScrolled = true;
480480
$.fn.scrollingTabs.defaults.reverseScroll = true;
481481
$.fn.scrollingTabs.defaults.widthMultiplier = 0.5;
482+
$.fn.scrollingTabs.defaults.enableSwiping = true;
482483
```
483484

484485
#### <a id="events"></a>Events

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jquery-bootstrap-scrolling-tabs",
3-
"version": "1.2.1",
3+
"version": "1.2.2",
44
"main": [
55
"./dist/jquery.scrolling-tabs.js",
66
"./dist/jquery.scrolling-tabs.css"

dist/jquery.scrolling-tabs.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* jquery-bootstrap-scrolling-tabs
3-
* @version v1.2.1
3+
* @version v1.2.2
44
* @link https://github.com/mikejacobson/jquery-bootstrap-scrolling-tabs
55
* @author Mike Jacobson <[email protected]>
66
* @license MIT License, http://www.opensource.org/licenses/MIT

dist/jquery.scrolling-tabs.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* jquery-bootstrap-scrolling-tabs
3-
* @version v1.2.1
3+
* @version v1.2.2
44
* @link https://github.com/mikejacobson/jquery-bootstrap-scrolling-tabs
55
* @author Mike Jacobson <[email protected]>
66
* @license MIT License, http://www.opensource.org/licenses/MIT
@@ -93,6 +93,15 @@
9393
* set to true if you want the left scroll arrow to
9494
* slide the tabs left instead of right, and the right
9595
* scroll arrow to slide the tabs right.
96+
* enableSwiping:
97+
* set to true if you want to enable horizontal swiping
98+
* for touch screens. This simply enables horizontal
99+
* scrolling--and therefore the horizontal scrollbar--for
100+
* the tabs. For WebKit-based browsers, the scrollbar
101+
* will then be hidden via CSS (because the plugin will
102+
* add CSS class scrtabs-allow-scrollbar to the parent
103+
* element) but for browsers that don't support
104+
* ::-webkit-scrollbar, the scrollbar will be visible.
96105
* widthMultiplier:
97106
* set to a value less than 1 if you want the tabs
98107
* container to be less than the full width of its
@@ -124,7 +133,7 @@
124133
* and cssClassRightArrow settings.
125134
* For example, if you wanted to use svg icons, you
126135
* could set them like so:
127-
136+
*
128137
* leftArrowContent: [
129138
* '<div class="custom-arrow">',
130139
* ' <svg class="icon icon-point-left">',

dist/jquery.scrolling-tabs.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/jquery.scrolling-tabs.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ gulp.task('sass', function () {
7272

7373
gulp.task('watch', function () {
7474
gulp.watch('src/scss/*.scss', ['buildcss']);
75-
gulp.watch('src/js/*.js', ['buildjs']);
75+
gulp.watch('src/js/*.js', ['buildjs', 'buildcss']);
7676
});
7777

7878
gulp.task('buildcss', function (cb) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jquery-bootstrap-scrolling-tabs",
3-
"version": "1.2.1",
3+
"version": "1.2.2",
44
"description": "jQuery plugin for scrollable Bootstrap Tabs",
55
"homepage": "https://github.com/mikejacobson/jquery-bootstrap-scrolling-tabs",
66
"bugs": "https://github.com/mikejacobson/jquery-bootstrap-scrolling-tabs/issues",

src/js/header.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* jquery-bootstrap-scrolling-tabs
3-
* @version v1.2.1
3+
* @version v1.2.2
44
* @link https://github.com/mikejacobson/jquery-bootstrap-scrolling-tabs
55
* @author Mike Jacobson <[email protected]>
66
* @license MIT License, http://www.opensource.org/licenses/MIT

src/js/usage.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,15 @@
8585
* set to true if you want the left scroll arrow to
8686
* slide the tabs left instead of right, and the right
8787
* scroll arrow to slide the tabs right.
88+
* enableSwiping:
89+
* set to true if you want to enable horizontal swiping
90+
* for touch screens. This simply enables horizontal
91+
* scrolling--and therefore the horizontal scrollbar--for
92+
* the tabs. For WebKit-based browsers, the scrollbar
93+
* will then be hidden via CSS (because the plugin will
94+
* add CSS class scrtabs-allow-scrollbar to the parent
95+
* element) but for browsers that don't support
96+
* ::-webkit-scrollbar, the scrollbar will be visible.
8897
* widthMultiplier:
8998
* set to a value less than 1 if you want the tabs
9099
* container to be less than the full width of its
@@ -116,7 +125,7 @@
116125
* and cssClassRightArrow settings.
117126
* For example, if you wanted to use svg icons, you
118127
* could set them like so:
119-
128+
*
120129
* leftArrowContent: [
121130
* '<div class="custom-arrow">',
122131
* ' <svg class="icon icon-point-left">',

0 commit comments

Comments
 (0)