Titanium JIRA Archive
Appcelerator Community (AC)

[AC-6045] Issue with the web listened in relationship with the Web View.

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionNeeds more info
Resolution Date2018-12-17T21:52:45.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterAndreas Pingas
AssigneeShak Hossain
Created2018-12-03T16:07:46.000+0000
Updated2018-12-17T21:52:45.000+0000

Description

Issue with the web listened in relationship with the Web View. When i have a Web View in an event listener to the main window, the web view is not accesible.
var win = Ti.UI.createWindow();
							  
win.add(Ti.UI.createWebView({
	height:'300dip',
	top:'0dip',
	left:'0dip',
	right:'0dip',
    enableZoomControls:false,
    scalesPageToFit:false,
    scrollsToTop:false,
    showScrollbars:false,
    hideLoadIndicator:true,
    url:'https://www.google.com/'
}));

win.addEventListener('click', function() {
	Ti.API.info('click');
});

win.open();

Comments

  1. Jebun Naher 2018-12-04

    Hi [~andreas.pingas], Can you share more details? What version of ti SDK you're using? Please share complete trace log. In which platform do you experience this? Android or iOS? Let us know the update. Thanks!
  2. Andreas Pingas 2018-12-08

    Eventually it was not a bug but a setting of the Webview: willHandleTouches : Boolean Explicitly specifies if this web view handles touches. On the iOS platform, if this web view or any of its parent views have touch listeners, the Titanium component intercepts all touch events. This prevents the user from interacting with the native web view components. Set this flag to false to disable the default behavior. Setting this property to false allows the user to interact with the native web view and still honor any touch events sent to its parents. No touch events will be generated when the user interacts with the web view itself. Set this flag to true if you want to receive touch events from the web view and the user does not need to interact with the web content directly. This flag is true by default to retain backwards compatibility with previous behavior. Default: true
  3. Sharif AbuDarda 2018-12-08

    Hello [~andreas.pingas], You are able to resolve your issue?

JSON Source