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)
|
// detect misstouch (<100 pixels)
|
||||||
if( Math.abs(e.getX()-firstx) < 100)
|
if( Math.abs(e.getX()-firstx) < 100)
|
||||||
{
|
{
|
||||||
|
/*
|
||||||
anim = false;
|
anim = false;
|
||||||
targetPage = currentPage;
|
targetPage = currentPage;
|
||||||
scrollTo(currentPage*pageWidth,0);
|
scrollTo(currentPage*pageWidth,0);*/
|
||||||
|
targetPage = currentPage;
|
||||||
|
isInc = currentPage * pageWidth > lastScroll;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue