In PiGallery2, you can navigate through photos using the side buttons or arrow keys. However, on mobile devices, the side buttons disappear when a photo fills the screen. This means users have to tap twice: once to make the buttons reappear, and again to go to switch photos. To make mobile navigation more intuitive, this userscript allows you to navigate by simply tapping either side of the screen.
Important
You will need to install a userscript manager for your browser, such as Tampermonkey or Userscripts.