mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 19:45:05 +08:00
Smooth page return
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user