Closed m1ga closed 1 month ago
x/y position of the touch when using dragstart/dragend:
var win = Ti.UI.createWindow(); var scrollView = Ti.UI.createScrollView({ showVerticalScrollIndicator: true, showHorizontalScrollIndicator: true, height: '80%', width: '80%' }); var view = Ti.UI.createView({ backgroundColor:'#336699', borderRadius: 10, top: 10, height: 2000, width: 1000 }); scrollView.add(view); scrollView.addEventListener("dragstart", function(e){ console.log(e.x, e.y); }) scrollView.addEventListener("dragend", function(e){ console.log(e.x, e.y); }) win.add(scrollView); win.open();
Hi @m1ga I created the iOS version here.
Awesome, thanks @deckameron
x/y position of the touch when using dragstart/dragend: