Skip to content

Commit 5a1fab6

Browse files
author
Jens Claes
committed
Apply xScrollingSpeed also to onScroll.
1 parent 9f9b25b commit 5a1fab6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/main/java/com/alamkanak/weekview/WeekView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float d
130130
mCurrentScrollDirection = Direction.VERTICAL;
131131
}
132132
}
133-
mDistanceX = distanceX;
133+
mDistanceX = distanceX * mXScrollingSpeed;
134134
mDistanceY = distanceY;
135135
invalidate();
136136
return true;

0 commit comments

Comments
 (0)