Discussion Forums  >  WebViews and HTML for Mobile

Replies: 2    Views: 231

SuperScripters
Code is Art
Profile
Posts: 21
Reg: Feb 08, 2011
location unknow...
2,560
07/18/12 04:37 PM (13 years ago)

Disable Long Touch Event

Can anybody tell how to disable LONG touch Event For example: If i select some custom URL screen and write my own HTML. but if user clicks long touch on any LINK it displays its URL can anybody tell how to disable it ? atleast for ios ? This might help http://stackoverflow.com/questions/4314193/how-to-disable-long-touch-in-uiwebview
 
SuperScripters
Code is Art
Profile
Posts: 21
Reg: Feb 08, 2011
location unknow...
2,560
like
07/18/12 04:46 PM (13 years ago)
Awesome..!! i figured it out..!! Anyways if anybody needs same..!! Here is how i did it..!! Inside BT_Screens -- > Bt_screen_webview.m file find webViewDidFinishLoad function Place this line of code after [BT_debugger showIt:self:@"webViewDidFinishLoad"]; [webView stringByEvaluatingJavaScriptFromString:@"document.body.style.webkitTouchCallout='none'; document.body.style.KhtmlUserSelect='none'"]; References: http://stackoverflow.com/questions/4314193/how-to-disable-long-touch-in-uiwebview http://www.buzztouch.com/forum/thread.php?tid=7B7E9175CBB2C5298D978E3&currentPage=198 Can anybody know how to do it on android ?
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
07/18/12 05:09 PM (13 years ago)
Excellent
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.