How to initiate Page CURL with less offset
jAddict7 opened this issue · comments
jAddict7 commented
Thanks for this awesome library. Actually am trying to turn the page when User even has little touchmove on the screen. Is there parameter to set page turn offset? .. I have checked with CurlView onTouch event and not sure where to change to achieve the effect. Please guide me the proper way.
jAddict7 commented
I have got one solution, not sure its proper but works. If any better solution, please post it. Thank you.
case MotionEvent.ACTION_UP: {
if (mCurlState == CURL_LEFT || mCurlState == CURL_RIGHT) {
if(mCurlState == CURL_LEFT){
mAnimationTarget.set(mDragStartPos);
mAnimationTarget.x = mRenderer
.getPageRect(CurlRenderer.PAGE_RIGHT).right;
mAnimationTargetEvent = SET_CURL_TO_RIGHT;
}else{
mAnimationTarget.set(mDragStartPos);
mAnimationTarget.x = mRenderer
.getPageRect(CurlRenderer.PAGE_LEFT).left;
mAnimationTargetEvent = SET_CURL_TO_LEFT;
}
mAnimate = true;
requestRender();
}
break;