Skip to content
This repository was archived by the owner on May 2, 2019. It is now read-only.

Commit 1bef1ab

Browse files
committed
docs: Update README.md for the latest futures
- ⬆️ dependencies
1 parent dcb55a8 commit 1bef1ab

File tree

5 files changed

+27
-17
lines changed

5 files changed

+27
-17
lines changed

.babelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
],
66
"extra": {
77
"react-transform": [{
8-
"target": "react-transform-webpack-hmr",
8+
"target": "react-transform-hmr",
99
"imports": ["react"],
1010
"locals": ["module"]
1111
}, {

README.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,28 @@ To run the examples:
3636

3737
### Settings
3838

39-
- cssEase - transitionTimingFn
39+
- cssEase - renamed to transitionTimingFn
40+
- speed - renamed to transitionSpeed
41+
- easing - Not supported: Minimum browser support ensure CSS Transistions are present.
4042
- arrows - Alternate way: Instead of arrows pass empty `<div>` to the Slider
4143
- appendArrows, appendDots - Not supported due the architecture of component
4244
- mobileFirst - Alternate way: Control the size of Slider just usign css on the parent class
4345
- leftArrow, rightArrow - Alternate way: Just put a ref on leftArrow and rightArrow
4446
- infinite - works as expected
4547
- initialSlide - works as expected
4648
- rows - Alternate way: Pass pages of slides instead of slides.
47-
- speed - transitionSpeed
49+
- slidesPerRow - Alternate Way: Pass pages of slides instead of slides
4850
- vertical - works as expected
49-
50-
**Progress** - Total: 43 Current:
51+
- swipe, verticalSwiping - merged into swipe - works as expected
52+
- touchMove - coming soon
53+
- draggable - works as expected,
54+
- edgeFriction - works as expected
55+
- touchThreshold - fraction by which you should slide for slide to change - works as expected
56+
- swipeEvent - works as expected
57+
- edgeEvent - works as expected
58+
- zIndex - Not supported: No support for IE 9 itself requires atleast IE11
59+
60+
**Progress** - Total: 43 Current: 23
5161

5262
### Events
5363

examples/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ class App extends Component {
1111
<div style={{ display: 'flex', flexDirection: 'column', alignItems: 'center' }} >
1212
<div>
1313
<h2>Non Infinite</h2>
14-
<NonInfinite width={580} height={150} />
14+
<NonInfinite width={580} height={150} swipe draggable />
1515
</div>
1616
<div>
1717
<h2>Infinite</h2>
18-
<Infinite width={580} height={150} />
18+
<Infinite width={580} height={150} swipe draggable />
1919
</div>
2020
<div>
2121
<h2>Custom Arrow</h2>
22-
<CustomArrows width={580} height={150} />
22+
<CustomArrows width={580} height={150} swipe draggable />
2323
</div>
2424
</div>
2525
);

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,24 +30,24 @@
3030
"homepage": "http://github.com/vramana/react-flex-slick",
3131
"devDependencies": {
3232
"babel": "^5.8.23",
33-
"babel-core": "^5.8.24",
33+
"babel-core": "^5.8.25",
3434
"babel-eslint": "^4.1.3",
3535
"babel-loader": "^5.3.2",
3636
"babel-plugin-react-transform": "^1.0.5",
3737
"css-loader": "^0.18.0",
38-
"eslint": "^1.4.3",
38+
"eslint": "^1.5.0",
3939
"eslint-config-airbnb": "0.0.8",
40-
"eslint-plugin-react": "^3.4.1",
40+
"eslint-plugin-react": "^3.4.2",
4141
"express": "^4.13.3",
4242
"react": "^0.14.0-rc1",
4343
"react-dom": "^0.14.0-rc1",
44-
"react-transform-catch-errors": "^0.2.0",
45-
"react-transform-webpack-hmr": "^0.1.5",
46-
"redbox-react": "^1.0.5",
44+
"react-transform-catch-errors": "^1.0.0",
45+
"react-transform-hmr": "^1.0.0",
46+
"redbox-react": "^1.0.6",
4747
"style-loader": "^0.12.4",
4848
"webpack": "^1.12.2",
4949
"webpack-dev-middleware": "^1.2.0",
50-
"webpack-hot-middleware": "^2.1.0"
50+
"webpack-hot-middleware": "^2.2.0"
5151
},
5252
"peerDependencies": {
5353
"react": ">=0.13 || ^0.14.0-alpha"

src/Slider.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ class Slider extends Component {
2828
vertical: false,
2929
transitionSpeed: 500,
3030
transitionTimingFn: 'ease',
31-
swipe: true,
32-
draggable: true,
31+
swipe: false,
32+
draggable: false,
3333
infinite: false,
3434
edgeFriction: 0.35,
3535
touchThreshold: 5

0 commit comments

Comments
 (0)