Join egghead, unlock knowledge.

Want more egghead?

This lesson is for members. Join us? Get access to all 3,000+ tutorials + a community with expert developers around the world.

Unlock This Lesson
1×
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.

Autoplay

    Disable Text Selection and Touch Callouts in a PWA on iOS

    reactReact
    16.6.3-16.8.6

    Because an installed PWA is really just a web app running in a browser, there are some browser behaviors that we may not want in our app, if we're going for a more "native" feel.

    We'll first disable the ability to select text in our app by setting the css user-select options to none.

    Then, we'll disable the iOS long-press "callout" menu by setting -webkit-touch-callout to none.