parent
6fb51b0eea
commit
805cc907e2
@ -1,19 +1,14 @@ |
|||||||
package io.legado.app.ui.book.read.page.delegate |
package io.legado.app.ui.book.read.page.delegate |
||||||
|
|
||||||
import android.graphics.Canvas |
|
||||||
import io.legado.app.ui.book.read.page.PageView |
import io.legado.app.ui.book.read.page.PageView |
||||||
|
|
||||||
class NoAnimPageDelegate(pageView: PageView) : HorizontalPageDelegate(pageView) { |
class NoAnimPageDelegate(pageView: PageView) : HorizontalPageDelegate(pageView) { |
||||||
override fun onAnimStart() { |
|
||||||
startScroll(touchX.toInt(), 0, 0, 0) |
|
||||||
} |
|
||||||
|
|
||||||
override fun onDraw(canvas: Canvas) { |
|
||||||
} |
|
||||||
|
|
||||||
override fun onAnimStop() { |
override fun onAnimStart() { |
||||||
if (!isCancel) { |
if (!isCancel) { |
||||||
pageView.fillPage(mDirection) |
pageView.fillPage(mDirection) |
||||||
} |
} |
||||||
|
stopScroll() |
||||||
} |
} |
||||||
|
|
||||||
} |
} |
Loading…
Reference in new issue