• James R Kirk@startrek.website
    link
    fedilink
    English
    arrow-up
    4
    ·
    14 hours ago

    Also, the one feature I’ve come across (long press a link for a preview) is actually pretty useful sometimes. I’m actually impressed they discovered a use for generative AI that isn’t annoying and stupid.

    • ggtdbz@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      2
      ·
      6 hours ago

      On-device translation is also exactly what I want out of this tech and we have it. You can even just go to about:translations. This isn’t 2001 anymore, you shouldn’t be using someone else’s server to translate something quick for you. Not at first pass at least.

    • irmadlad@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      9 hours ago

      Ditto! I’ve used it a couple times before. Pretty snazzy. I’m wondering what goes on behind long press feature…hey, why not ask Duck.ai itself:

      I’ve spared the…‘less tolerant of AI’ among us. I hear you. Some of you have good points. Just trying to be accommodating. 😃

      Understanding the Long Press Feature

      spoiler

      The long press feature is a common interaction design element used in touch interfaces, such as smartphones and tablets. Let’s break down how it works and what happens behind the scenes. How Long Press Works

      A long press typically involves two main phases: touch detection and action execution.

      Touch Detection:
          When a user touches the screen, the device starts a timer.
          If the touch continues for a predetermined duration (usually around 300-700 milliseconds), the device recognizes it as a long press.
          Different platforms may have slightly different thresholds for detecting a long press.
      
      Action Execution:
          After detecting a long press, the system triggers a specific action. This could be displaying a context menu, enabling additional options, or initiating a particular function (e.g., selecting text or moving an item).
      

      Behind the Scenes

      Event Handling:
          Most touch-based operating systems have an event listener that monitors touch events (e.g., touchstart, touchmove, touchend).
          A long press action typically involves the touchstart event initializing a timer, while the touchend event can either reset the timer or trigger the long press action.
      
      Feedback Mechanisms:
          Visual feedback, such as highlighting or showing a loading indicator, is often provided during the long press to confirm to the user that their action is recognized.
          Haptic feedback (vibrations) may also be used to enhance the user experience.
      
      User Experience Considerations:
          Developers must carefully select the actions triggered by a long press to avoid conflicts with other gestures, like taps or swipes.
          Testing across various devices ensures that the long press feature feels consistent for users.
      

      Applications of Long Press

      Contextual Menus: Allow users to access additional options relevant to the selected item.
      Drag and Drop: Users may long press an item to initiate drag-and-drop functionality.
      Editing Options: In text fields, a long press may bring up options to copy, paste, or select.
      

      In essence, the long press feature is a versatile tool in touch interfaces, enhancing interactivity by providing users with contextual options without cluttering the screen with buttons.

      • ~Not responsible for inaccurate information~
      • DoGeeseSeeGod@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        1
        ·
        6 hours ago

        Hey slopper that’s not at all what a long press is or how it works. Long presses are when you press with the side of your finger cuz its longer duh! It works the same as regular press they just add a wait timer so the BPU (brained processing unit) doesn’t get over stimulated and stuck.