0

Each time I long press on any view/screen there is some kind of rectangular magnifier which pops up. See image for more informationclick to view rectangular magnifier

It appears in a specific area each time no matter where i press and hold on the screen. I would like to disable the rectangular magnifier, i have tried the following codes in css:

-webkit-touch-callout: none; 
-webkit-user-select: none; 
-khtml-user-select: none; 
-moz-user-select: none; 
-ms-user-select: none; 
-o-user-select: none; 
user-select: none; 

But it does not get disabled. Here is a video so you can have more information about the issue:

domino_katrino
  • 356
  • 3
  • 19
Nessen
  • 13
  • 1
  • 5
  • Isn't this part of the system. Normally used to make sure you are clicking the area that you intend to click? Something like, "these objects are pretty close, which one do you want". – durbnpoisn Oct 13 '15 at 15:24
  • Or it is the copy/paste widget. Have you had you iPhone long? Do you use it often? –  Oct 14 '15 at 07:42
  • @durbnpoisn No it appears in a specific area each time no matter where i press and hold on the screen. I would like to disable the rectangular magnifier, i have tried the following codes in css: `code` -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; -o-user-select: none; user-select: none; `code` But it does not get disabled. Here is a video so you can have more information about the issue: http://recordit.co/g879oCFvpS – Nessen Oct 14 '15 at 07:48
  • @JesseMonroy650 No i am creating a phonegap/cordova app and this keeps appearing whenever i press and hold on the application screen. happens only when i disabled copy/paste option see this video: http://recordit.co/g879oCFvpS – Nessen Oct 14 '15 at 08:10
  • I don't know what say. I'm too tired. –  Oct 14 '15 at 08:30
  • If this is indeed a phonegap thing, then I think I'm right. Because that is a function that is used in web views to magnify the screen when it's not sure which element you intended to click on. – durbnpoisn Oct 14 '15 at 12:57
  • @durbnpoisn thanks for your reply. Is there a way to disable this? – Nessen Oct 14 '15 at 13:16
  • My only suggestion would be to keep your elements further apart and larger. – durbnpoisn Oct 14 '15 at 13:34

1 Answers1

-1

@jessemonroy650 There is only js/jquery way: document.addEventListener("touchstart", function(e) { this.trigger("click"); e.returnValue = false });

more info on Disable the text-highlighting magnifier on touch-hold on Mobile Safari / Webkit

Community
  • 1
  • 1
gray_15
  • 411
  • 1
  • 7
  • 13