Giter Site home page Giter Site logo

mobile about downforacross.com HOT 2 CLOSED

stevenhao avatar stevenhao commented on August 15, 2024
mobile

from downforacross.com.

Comments (2)

stevenhao avatar stevenhao commented on August 15, 2024

mostly done as of 740a903..f2fb3b9

from downforacross.com.

stevenhao avatar stevenhao commented on August 15, 2024

just reverted a lot of those changes in 08195a1. Will be closing this ticket because it's outdated.

Summary of my reasoning:

trying to make a web app behave like a native app is hard for several reasons

  • different browsers behave differently (safari, chrome, opera, in-app browser e.g. messenger, slack)
  • different platforms (ios, android) behave differently
  • different versions of the OS have different behavior
  • overriding the native keyboard is just a bad idea since it's jarring and hard to make it a smooth UX

the main roadblocks are:

  • overriding browser defaults is not always possible
    • for example, you can't easily disable pinch-zooming in newer versions of ios safari
    • can't override swipe-to-go-back gesture
    • this resulted in really jarring behavior when pinching, because the app would try and fail to prevent the default zoom behavior, while also implementing its own pinch handlers.
  • something about passive listeners and varied compatibility

my learnings:

  • if you want your app to feel like a mobile app, just make it a native app. hacking html will not work. even if it works temporarily, you'll have to keep maintaining it as new browser / OS versions get released
  • if you're going to use html, try to override default behavior in as few places as possible, to make the UX intuitive

from downforacross.com.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.