FolioReader / FolioReader-Android

A Java ePub reader and parser framework for Android.
BSD 3-Clause "New" or "Revised" License
2.25k stars 716 forks source link

Go to next chapter when loading and fast swipe #373

Closed cezaryjurkiweicz closed 5 years ago

cezaryjurkiweicz commented 5 years ago

When chapter is loading and you want to fast change page it's go to next chapter

mahavir155 commented 5 years ago

Yeah, it will go to the next chapter if loading is not done. Not a bug

cezaryjurkiweicz commented 5 years ago

How can I change it? I think it's bad UX if someone want to go next page and it's open next chapter.

SeijiFukuoka commented 4 years ago

@cezaryjurkiweicz or @mahavir155

Could you please, help me to change the code to avoid going to next chapter, when user scroll at right edge?

645h1 commented 4 years ago

@SeijiFukuoka Hi, did you solve that how to remove the scrolling chapters at right edge?

645h1 commented 4 years ago

Eureka :D In case somebody need this then you have to go to the class called DirectionalViewpager then to the '@override protected void onMeasure()' method. Next step is to find the line: "mGutterSize = Math.min(maxGutterSize, mDefaultGutterSize);" and replace with "mGutterSize = 0;".