1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-05 10:49:24 +02:00

animation update

This commit is contained in:
Nikolay Pultsin 2011-03-30 01:54:05 +01:00
parent e68173e333
commit 8d414fa9a1

View file

@ -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();