pull/38/head
kunfei 5 years ago
parent 0f264eb0ce
commit ec0ea267e9
  1. 2
      app/src/main/java/io/legado/app/ui/widget/page/ContentTextView.kt

@ -121,7 +121,6 @@ class ContentTextView : AppCompatTextView {
MotionEvent.ACTION_MOVE -> { MotionEvent.ACTION_MOVE -> {
val y = (event.y + 0.5f).toInt() val y = (event.y + 0.5f).toInt()
var dy = mLastTouchY - y var dy = mLastTouchY - y
if (mScrollState != scrollStateDragging) { if (mScrollState != scrollStateDragging) {
var startScroll = false var startScroll = false
@ -137,7 +136,6 @@ class ContentTextView : AppCompatTextView {
setScrollState(scrollStateDragging) setScrollState(scrollStateDragging)
} }
} }
if (mScrollState == scrollStateDragging) { if (mScrollState == scrollStateDragging) {
mLastTouchY = y mLastTouchY = y
} }

Loading…
Cancel
Save