• AngryPancake
    link
    fedilink
    arrow-up
    15
    ·
    7 months ago

    As a computer science problem it ends at position = window center / 2 - object width / 2

    • Trollception@lemmy.world
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      7 months ago

      Is not always this simple though. If the window has yet to be spawned in some languages the width will be unavailable, until after. Sometimes the window can be seen before it moves to the center which is a bit jarring.