mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-05 10:49:24 +02:00
animation update
This commit is contained in:
parent
e68173e333
commit
8d414fa9a1
1 changed files with 6 additions and 5 deletions
|
@ -314,11 +314,12 @@ public class ZLAndroidWidget extends View implements View.OnLongClickListener {
|
||||||
(shift < 0 && getScrollingShift() >= 0)) {
|
(shift < 0 && getScrollingShift() >= 0)) {
|
||||||
mySecondaryBitmapIsUpToDate = false;
|
mySecondaryBitmapIsUpToDate = false;
|
||||||
}
|
}
|
||||||
if (myScrollHorizontally) {
|
|
||||||
myEndX = myStartX + shift;
|
myStartX = startX;
|
||||||
} else {
|
myStartY = startY;
|
||||||
myEndY = myStartY + shift;
|
myEndX = endX;
|
||||||
}
|
myEndY = endY;
|
||||||
|
|
||||||
setPageToScrollTo(shift < 0 ? ZLView.PageIndex.next : ZLView.PageIndex.previous);
|
setPageToScrollTo(shift < 0 ? ZLView.PageIndex.next : ZLView.PageIndex.previous);
|
||||||
drawOnBitmap(mySecondaryBitmap);
|
drawOnBitmap(mySecondaryBitmap);
|
||||||
postInvalidate();
|
postInvalidate();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue