Smooth page return

This commit is contained in:
mittorn 2018-04-03 02:06:22 +07:00 committed by Alibek Omarov
parent 47433059b5
commit fbb5301075

View file

@ -126,9 +126,12 @@ public class XashTutorialActivity extends Activity implements View.OnClickListen
// detect misstouch (<100 pixels)
if( Math.abs(e.getX()-firstx) < 100)
{
/*
anim = false;
targetPage = currentPage;
scrollTo(currentPage*pageWidth,0);
scrollTo(currentPage*pageWidth,0);*/
targetPage = currentPage;
isInc = currentPage * pageWidth > lastScroll;
}
return false;
}