[AC-6045] Issue with the web listened in relationship with the Web View.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Needs more info |
Resolution Date | 2018-12-17T21:52:45.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | n/a |
Reporter | Andreas Pingas |
Assignee | Shak Hossain |
Created | 2018-12-03T16:07:46.000+0000 |
Updated | 2018-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();
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!
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
Hello [~andreas.pingas], You are able to resolve your issue?