Smooth page return
This commit is contained in:
parent
47433059b5
commit
fbb5301075
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue