advplyr / audiobookshelf-app

Mobile application for Audiobookshelf
https://audiobookshelf.org
GNU General Public License v3.0
1.26k stars 171 forks source link

[iOS] UI treating short dragging as a tap/open when it shouldn't be #998

Open johnpyp opened 10 months ago

johnpyp commented 10 months ago

Steps to reproduce

  1. Go to the main screen
  2. With your finger on a book or any clickable element, drag your finger quickly and release.
  3. It will treat it as if you've clicked, but typical well-behaving iOS apps would not treat this as a press.

Expected behaviour

Short drags should not result in a click

Actual behaviour

Short drags over clickable elements cause a tap/press to happen. It does not seem to happen for prolonged drags though, so I imagine the bug is something where the UI is doing some press-timing math when it shouldn't be.

Environment data

Audiobookshelf Version: 0.9.70-beta, server v.2.6.0

iOS Issue

iOS Version: 17.1.2

iPhone model: iPhone 15 Pro

johnpyp commented 10 months ago

Maybe this could be loosely related to https://github.com/ionic-team/capacitor/issues/6826, though it's not exactly the same, as it doesn't have to be "stopping the tap" in my case, just doing a short scroll where my finger isn't on the screen for very long.