Skip to content

Commit d5c4b58

Browse files
author
Jens Claes
committed
Merge branch 'x-scroll-speed-fix' into quivr-master
2 parents a9b6f94 + 5a1fab6 commit d5c4b58

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
@@ -158,7 +158,7 @@ public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float d
158158
mCurrentScrollDirection = Direction.VERTICAL;
159159
}
160160
}
161-
mDistanceX = distanceX;
161+
mDistanceX = distanceX * mXScrollingSpeed;
162162
mDistanceY = distanceY;
163163
invalidate();
164164
return true;

0 commit comments

Comments
 (0)