omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Disabling "emergency exit" gesture for fullscreen script with no titlebar?

    Pythonista
    presentation gesture
    2
    3
    1674
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • shinyformica
      shinyformica last edited by

      Presenting a view with style = "full_screen" and hide_title_bar = True will enable that special two-finger-swipe "emergency exit" gesture, which will force the view to close.

      Is there a way to disable that gesture? For my script, I actually may have situations where two fingers will swipe down fast enough to cause that emergency exit to close the presented view. It would be a rare event, thankfully, but it is possible, so I'd like to turn it off altogether.

      mikael 1 Reply Last reply Reply Quote 0
      • mikael
        mikael @shinyformica last edited by

        @shinyformica, Gestures has a disable_swipe_to_close method, and a replace_close_gesture if you want to use some other gesture instead.

        1 Reply Last reply Reply Quote 0
        • shinyformica
          shinyformica last edited by

          @mikael sweet! Didn't realize the magnificent Gestures module already had exactly what I needed.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB Forums | Contributors