[TIMOB-7510] Longpress Event in iOS Webview not working
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-04-19T17:46:29.000+0000 |
Affected Version/s | Release 1.8.0.1 |
Fix Version/s | Release 2.0.0, Sprint 2012-06 |
Components | iOS |
Labels | module_webview, parity |
Reporter | Varun Joshi |
Assignee | Max Stepanov |
Created | 2012-02-01T17:26:34.000+0000 |
Updated | 2012-04-19T17:46:29.000+0000 |
Description
The longpress event in a webview does not working on iOS. It works on the Android emulator. Tried it with the attached sample code.
The documentation here shows that it is there on the iOS: https://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.WebView-object.html
{noformat}
var win = Ti.UI.createWindow({
backgroundColor: 'white'
});
var webview = Ti.UI.createWebView({
top: 10,
height: Ti.Platform.displayCaps.platformHeight,
url:'http://www.google.com'
});
win.add(webview);
webview.addEventListener('longpress', function(e){
alert('Long Pressed Webview');
});
win.open();
{noformat}
Fixed by PR https://github.com/appcelerator/titanium_mobile/pull/1359
Closing bug. Verified fix on: SDK build: 2.0.0.v20120315140247 Titanium Studio, build: 2.0.0.201203142055 xcode: 4.2 Device: iphone 4s (5.0.1)
Open to update label