How to Build a Long Press Event

Поделиться
HTML-код
  • Опубликовано: 10 дек 2024

Комментарии • 12

  • @abhim6380
    @abhim6380 4 года назад

    This channel is a gold mine

  • @sophiechen1952
    @sophiechen1952 2 года назад

    This was very helpful, thank you for this video !

  • @KeepItFresh02
    @KeepItFresh02 2 года назад

    Thank you. I have to implment long press functionality in a web application im building and this should do the trick.

  • @AkshayPatange29
    @AkshayPatange29 3 года назад

    This is so cool! Thanks for sharing! :)

  • @expukpuk
    @expukpuk 3 года назад

    Thanks Mate. Nice feature.

  • @Chris2phaBrown
    @Chris2phaBrown 4 года назад +1

    You might run into problems if you add the event listeners for touchstart and mousedown inside of the if touchstart in document.body. Cases such as a laptop with a touchscreen. Great videos BTW.

  • @dbo174
    @dbo174 2 года назад

    Hi great video, I need to disable the popup context menu when long pressing but still be able to click on a link or photo, but preventDefault() overrides the link/photos being clickable. Do you have any alternatives to preventDefault please? Thanks

  • @uimonk
    @uimonk 4 года назад

    You are awesome

  • @zimani7g473
    @zimani7g473 4 года назад

    ♥️😢🔥♥️♥️♥️♥️ Big love 💝🤗

  • @emotionstv6721
    @emotionstv6721 2 месяца назад

    Vous voyez bien que d'autres réactions ne marchent pas, seulement "like".