Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23287] Windows: drag end event doesn't work for ScrollableView

GitHub Issuen/a
TypeBug
PriorityMedium
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 5.3.0
Fix Version/sn/a
ComponentsWindows
Labelsn/a
ReporterKota Iguchi
AssigneeKota Iguchi
Created2016-04-28T14:00:06.000+0000
Updated2016-04-28T14:00:06.000+0000

Description

Per TIMOB-19958 {quote} dragend does not appear to be working. dragstart,scroll and scrollend do work as expected. Tried following native event handlers (for Windows::UI::Xaml::Controls::ScrollViewer but non of them are working. ManipulationCompleted PointerReleased PointerCanceled PointerCaptureLost PointerExited So I would say we can't make this work because of plataform component spec. {quote} *app.js*
var win = Ti.UI.createWindow();

var img1 = Ti.UI.createImageView({
    image: 'http://upload.wikimedia.org/wikipedia/commons/thumb/e/ec/' +
        'Mona_Lisa%2C_by_Leonardo_da_Vinci%2C_from_C2RMF_retouched.jpg/' +
        '402px-Mona_Lisa%2C_by_Leonardo_da_Vinci%2C_from_C2RMF_retouched.jpg'
});
var img1Wrapper = Ti.UI.createScrollView({
    maxZoomScale: 4.0,
});
img1Wrapper.add(img1);

var img2 = Ti.UI.createImageView({
    image: 'http://www.nasa.gov/images/content/' +
        '616903main_rover_comparison1600_1600-1200.jpg'
});
var img2Wrapper = Ti.UI.createScrollView({
    maxZoomScale: 4.0,
});
img2Wrapper.add(img2);
var photosView = Ti.UI.createScrollableView({
    showPagingControl: true,
    views: [img1Wrapper, img2Wrapper]
});
win.add(photosView);
photosView.addEventListener('dragend', function(e) {
    Titanium.API.info("dragend");
});

photosView.addEventListener('dragstart', function(e) {
    Titanium.API.info("dragstart");
});

photosView.addEventListener('scroll', function(e) {
    Titanium.API.info("scroll");
});

photosView.addEventListener('scrollend', function(e) {
    Titanium.API.info("scrollend");
});


win.open();

Comments

No comments

JSON Source