blob: 77f620a80f88a28957d1c47776d30be927dd8722 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Cordova iOS LongPress Fix Plugin
by [Eddy Verbruggen](http://twitter.com/eddyverbruggen)
## Description
Apple thought it'd be nice to show a magnifying glass when longpressing the webview on iOS9.
Don't like it? This plugin removes it!
<img src="screenshots/magnifying-glass.png" width="375px" height="333px"/>
## Installation
Cordova CLI
```
$ cordova plugin add cordova-plugin-ios-longpress-fix
```
PhoneGap Build
```xml
<gap:plugin id="cordova-plugin-ios-longpress-fix" source="npm" />
```
## Usage
It just works, and will proudly shout that at the XCode console when it does.
## Limitations
Currently only works with UIWebView, not WKWebView, but you should be able to
suppress the magnifying glass on WKWebView with a few lines of CSS.
## Future
I'm working with Cordova guys to get this in their distribution as standard.
|