|
|
@ -65,13 +65,13 @@ abstract class PageDelegate(protected val pageView: PageView) : |
|
|
|
var mDirection = Direction.NONE |
|
|
|
var mDirection = Direction.NONE |
|
|
|
var isCancel = false |
|
|
|
var isCancel = false |
|
|
|
var isRunning = false |
|
|
|
var isRunning = false |
|
|
|
var isStarted = false |
|
|
|
private var isStarted = false |
|
|
|
var isTextSelected = false |
|
|
|
var isTextSelected = false |
|
|
|
var selectedOnDown = false |
|
|
|
private var selectedOnDown = false |
|
|
|
|
|
|
|
|
|
|
|
var firstRelativePage = 0 |
|
|
|
private var firstRelativePage = 0 |
|
|
|
var firstLineIndex: Int = 0 |
|
|
|
private var firstLineIndex: Int = 0 |
|
|
|
var firstCharIndex: Int = 0 |
|
|
|
private var firstCharIndex: Int = 0 |
|
|
|
|
|
|
|
|
|
|
|
init { |
|
|
|
init { |
|
|
|
curPage.resetPageOffset() |
|
|
|
curPage.resetPageOffset() |
|
|
@ -127,9 +127,9 @@ abstract class PageDelegate(protected val pageView: PageView) : |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private fun stopScroll() { |
|
|
|
private fun stopScroll() { |
|
|
|
isMoved = false |
|
|
|
|
|
|
|
isStarted = false |
|
|
|
isStarted = false |
|
|
|
pageView.post { |
|
|
|
pageView.post { |
|
|
|
|
|
|
|
isMoved = false |
|
|
|
isRunning = false |
|
|
|
isRunning = false |
|
|
|
pageView.invalidate() |
|
|
|
pageView.invalidate() |
|
|
|
} |
|
|
|
} |
|
|
|