Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9072129
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T18:06:03+00:00 2026-06-16T18:06:03+00:00

Default keeping tap on the screen (eg. hold tap for 1 second) will show

  • 0

Default keeping tap on the screen (eg. hold tap for 1 second) will show a option of save image / copy. However , I would like to turn off that function for my web app , is it possible? I have tried to replace the event of touchmove to selectall , however it does not work . Thanks for helping.

addEventListener('touchmove', function(e) { e.preventDefault(); }, true);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T18:06:04+00:00Added an answer on June 16, 2026 at 6:06 pm

    I thought it would be worth mentioning that you can do this with pure CSS. It’s probably not a really great idea, because neither IE10 or Opera Mobile support it. But it can be done, and in the future, this would probably be a better way than with JavaScript. Or if you’re only talking about iPhones and iPads, this method would work really well. Here’s an example on CodePen.

    The code is simple:

    .notouch {
        pointer-events: none;
    }
    

    Just give the class of notouch to any image that you want to effect.

    If you want to do it to every image on the page, do this:

    img {
        pointer-events: none;
    }
    

    And I should give an obligatory speech on useability. By doing this you’re overriding default functionality that people expect to be there all the time. It makes for a really bad experience for you to turn off something like this, unless you have a really, really good reason to do so. So please, make sure you do.

    Edit:

    To get rid of the magnifying glass, use this code:

    .notouch {
        pointer-events: none;
        -webkit-user-select:none;
    }
    

    With -webkit-user-select set to ‘none’ you may not even need to turn off pointer events, but I’m not sure about that. I updated the CodePen as well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to know if it is possible to change the default route
By default, the ordered list looks like this: There are some spacing on the
By default, an unstyled set of nested <ul> lists looks like this (in Chrome,
I would like to configure apache php5 in a way that .css and .js
I have a asp.net page like default.aspx containing: <form id=form1 runat=server > <asp:Textbox id=Textbox1
I'm trying to show a table of ~800 entities, and having problems keeping it
which will be the best approach for a table design for keeping statuses for
I am trying to accomplish Reto Meier's recommended way for keeping the screen orientation
I would like to ask couple of questions regarding SQL Server Locking mechanism If
By default it appears Visual Studio is keeping all the unit test results. This

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.