Skip to content

Commit b9481f2

Browse files
committedFeb 23, 2018
increased verticalswiping resistance from 4 to 10
1 parent d6d5e92 commit b9481f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/mixins/event-handlers.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ var EventHandlers = {
127127
touchObject.swipeLength = Math.round(Math.sqrt(Math.pow(touchObject.curX - touchObject.startX, 2)));
128128
var verticalSwipeLength = Math.round(Math.sqrt(Math.pow(touchObject.curY - touchObject.startY, 2)));
129129

130-
if (!this.props.verticalSwiping && !this.state.swiping && verticalSwipeLength > 4) {
130+
if (!this.props.verticalSwiping && !this.state.swiping && verticalSwipeLength > 10) {
131131
this.setState({
132132
scrolling: true
133133
})
@@ -187,7 +187,7 @@ var EventHandlers = {
187187

188188
if (Math.abs(touchObject.curX - touchObject.startX) < Math.abs(touchObject.curY - touchObject.startY) * 0.8)
189189
{ return; }
190-
if (touchObject.swipeLength > 4) {
190+
if (touchObject.swipeLength > 10) {
191191
this.setState({
192192
swiping: true
193193
})

0 commit comments

Comments
 (0)