Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7510] Longpress Event in iOS Webview not working

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-04-19T17:46:29.000+0000
Affected Version/sRelease 1.8.0.1
Fix Version/sRelease 2.0.0, Sprint 2012-06
ComponentsiOS
Labelsmodule_webview, parity
ReporterVarun Joshi
AssigneeMax Stepanov
Created2012-02-01T17:26:34.000+0000
Updated2012-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}

Comments

  1. Max Stepanov 2012-03-13

    Fixed by PR https://github.com/appcelerator/titanium_mobile/pull/1359
  2. Wilson Luu 2012-03-15

    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)
  3. Natalie Huynh 2012-04-19

    Open to update label

JSON Source