question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Swiping 'back' in Safari on iOS disables interactivity

See original GitHub issue

Even on a freshly installed Rails 7.0.3.1 with a generated User scaffold, swiping ‘back’ once (doesn’t matter on which page) renders anything with a turbo-method useless. The only code that I changed is the Destroy button. However, I have first spotted this behavior in one of my more complex apps.

Expected behavior: “Destroy this user” should still work even after Steps to reproduce:

  1. In a default Rails setup with a User scaffold update the destroy button’s code with a turbo_method.
  2. Open website in Safari on iOS. Add a user. Destroy works at this point. Click ‘Back to users’. Swipe ‘back’ and destroy no longer works.
  3. Only thing that restores interactivity is a refresh.
  4. In Firefox on iOS this issue is (strangely enough) not present. However, on Firefox Focus on iOS turbo does not seem to work at all.
<%= button_to "Destroy this user", @user, method: :delete, form: { data: { turbo_method: :delete, turbo_confirm: 'Are you sure?' } } %>

I believe my issue might be related to #302, though I’m not sure.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:16 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
dhhcommented, Jul 19, 2022

Feels well worth turning this into a feature of Turbo. Even if it’s a specific path to work around an iOS bug. Gotta deal with reality as it is.

2reactions
dhhcommented, Jul 19, 2022

@domchristie If this issue is still present 5 years later, perhaps we should assume there’s no fix coming 😄. Maybe we can bake something like this straight into Turbo?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I disable Swipe to Go Back a page - Apple Discussions
How do I disable Swipe to Go Back a page in Safari for the iphone. I accidentally swipe and go back and forth...
Read more >
Prevent swiping between web pages in iPad Safari
In iOS 13.4+ you can now preventDefault on "touchstart" ... Swipe left is the "go back to the previous page in my navigation...
Read more >
bug: ios, cannot disable Safari swipe to go back when running ...
Swipe gesture cannot be disabled on native iOS or Android devices. When swiping back, if using [swipeGesture]=true the animation/back gesture ...
Read more >
How to disable interactive swipe to dismiss for view controllers
Fortunately, UIKit has a dedicated property that deactivates the swipe to dismiss behavior: isModalInPresentation . This is false by default, ...
Read more >
you can make it so Safari doesn't reload pages every ... - Reddit
Set the swipe gestures in BTT to do the hot keys in safari for forward and back, and BAM! You get your gestures...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found