Skip to content
This repository was archived by the owner on Feb 26, 2020. It is now read-only.

Commit

Permalink
Fix webtton mode crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Koitharu committed Dec 11, 2017
1 parent 494ed16 commit 74b30a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion OpenManga.iml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
<exclude-output />
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.gradle" />
<excludeFolder url="file://$MODULE_DIR$/build" />
</content>
<orderEntry type="jdk" jdkName="1.8" jdkType="JavaSDK" />
<orderEntry type="sourceFolder" forTests="false" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ else if (mCanScrollBottom)
mStartPoint = new PointF(motionEvent.getX(), motionEvent.getY());
return true;
case MotionEvent.ACTION_MOVE:
if (mStartPoint == null) return false;
int dY = (int) (mStartPoint.y - motionEvent.getY());
int dX = (int) (mStartPoint.x - motionEvent.getX());
if (mCanScrollTop && dY < 0)
Expand All @@ -61,6 +62,7 @@ else if (mCanScrollRight && dX > 0)
return true;
case MotionEvent.ACTION_CANCEL:
case MotionEvent.ACTION_UP:
if (mStartPoint == null) return false;
dY = (int) (mStartPoint.y - motionEvent.getY());
dX = (int) (mStartPoint.x - motionEvent.getX());

Expand Down

0 comments on commit 74b30a8

Please sign in to comment.