jobobby04 / TachiyomiSY

Free and open source manga reader for Android
Apache License 2.0
2.88k stars 156 forks source link

Chapter transition page sometimes disappears without user input #1250

Open perokhe opened 3 months ago

perokhe commented 3 months ago

Steps to reproduce

  1. Have "Always show chapter transition" enabled
  2. Open a chapter and scroll to previous chapters

Expected behavior

The chapter transition page should show until I scroll again

Actual behavior

The page disappears without user input and goes to previous/next chapter

Crash logs

No response

TachiyomiSY version

Preview r562

Android version

Android 10

Device

Samsung Note 9

Other details

https://github.com/user-attachments/assets/91e809ec-6fd8-4d12-a05d-0e64b9851cc2

Acknowledgements

Smol-Ame commented 3 months ago

(For Syer) I reverted the codestral cleanup of some double pages code to test & the issue seems partly fixed. Reverting made it no longer jump to the last page of the previous chapter (stays on Chapter Transition), but still displays a loading page text/loading circle overlay. (Hopefully that helps you out :amepray:)

perokhe commented 2 months ago

Yeah, more specifically I think the problem is that the line if (newPage is ChapterTransition && index == -1) was changed to just is ChapterTransition -> { https://github.com/jobobby04/TachiyomiSY/commit/1a4a2506f4c3a82b8ba36b76c43ccff6f5a99a59#diff-1e09718bb3bc7e66c42f70eda465d2834556a72c070a57c5de104ca01e74c8c5L360