QNimate

  • CoursesVideos
  • WP PremiumPlugins
  • DemosLab
  • Home
  • QIdea
  • QTrack
Home Carbon Ads Disable Text Selection in Phonegap

Disable Text Selection in Phonegap

Disabling text selection in phonegap app make it look more native. Here is the basic CSS code for disabling text selection in phonegap app

*
{
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}

input
{
-webkit-user-select: auto !important;
-khtml-user-select: auto !important;
-moz-user-select: auto !important;
-ms-user-select: auto !important;
user-select: auto !important;
}

*{
-webkit-user-drag: none;
-moz-user-drag: none;
-ms-user-drag: none;
user-drag: none;
}

There are many other techniques to make a Phonegap app look like native app. Read Making a phonegap app look like native app.

Nov 3, 2014Narayan Prusty
Find, Create or Change Facebook Page URLFull Screen Scrolling with Page Split Effect

Leave a Reply Cancel reply

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax

Narayan Prusty

I am a software engineer specialising in Blockchain, DevOps and Go/JavaScript. This is my personal blog where I write about things that I learn and feel interesting to share.

8 years ago Cordova
Share this
0
GooglePlus
0
Facebook
0
Twitter
0
Linkedin
Related Articles
  • Making a phonegap app look like native app
  • Disable Copy and Paste in Phonegap
  • Using Intel XDK Find if App is Running in Emulator or Device
  • Phonegap Refresh Page
  • Check if CSS property is supported using CSS and JavaScript
Our Sponsor
My Books

2014 - 2015 © QNimate
All tutorials MIT license