Page Peel effect
Hi
I want if i double click the top view that this one hides.
But if i add the event listener i lose my scrolling and zooming on this webview.
Titanium.UI.setBackgroundColor('#000');
var data = [];
for (var c=0;c<=10;c++)
{
var top = Titanium.UI.createWebView({url:"pdfs/"+(c+1)+".pdf",backgroundColor:'#ff0000',top:0,width:'100%',height:'100%',scalesPageToFit:true});
var bottom = Titanium.UI.createWebView({url:"pdfs/"+(c+1)+"_achter.pdf",backgroundColor:'#ff0000',top:0,width:'100%',height:'100%',scalesPageToFit:true});
var view = Titanium.UI.createView({borderRadius:0,backgroundColor:'red',width:'100%',height:'100%'});
view.add(bottom);
view.add(top);
data[c] = view;
/*
view.addEventListener('doubletap',function(e){
Titanium.API.info("CLICKED SLIDE "+e.target);
e.target.visible = false
});
*/
}
var scollerWindow = Ti.UI.createScrollableView({views:data,showPagingControl:false});
var window = Ti.UI.createWindow({
barColor:'#5f6062',
title:"Test",
backgroundColor:'#000'}
);
window.add(scollerWindow);
window.open();
1 Answer
-
I have the same problem with detecting a click event in a webview with a pdf. Do you found a solution?