Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19958] Windows: Missing events in ScrollableView

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2016-04-28T14:02:24.000+0000
Affected Version/sRelease 5.1.0
Fix Version/sRelease 5.3.0
ComponentsWindows
Labelsqe-5.3.0
ReporterKota Iguchi
AssigneeKota Iguchi
Created2015-11-13T07:01:15.000+0000
Updated2016-04-29T21:21:28.000+0000

Description

There's no events implemented in Ti.UI.ScrollableView. Also, revisit [API doc](http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.ScrollableView) and see if it has valid API availability for Windows.

Comments

  1. Gary Mathews 2016-01-03

    PR: https://github.com/appcelerator/titanium_mobile_windows/pull/518
  2. Josh Longton 2016-04-27

    dragend does not appear to be working. dragstart,scroll and scrollend do work as expected. *ENV* Microsoft Lumia 640 (8.1) Windows Simulator (8.1) Microsoft Lumia 640 (10) Windows Simulator (10) Windows 10 Studio: 4.6.0.201604210304 Ti SDK: 5.3.0.v20160421080259 Appc NPM: 4.2.5-3 App CLI: 5.3.0-36 Node v4.4.3 *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();
       
    *Reopening*
  3. Kota Iguchi 2016-04-28

    I tried all of native events that is related to pointer-release but non of them are working for [Xaml ScrollViewer](https://msdn.microsoft.com/library/windows/apps/windows.ui.xaml.controls.scrollviewer.aspx). 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. Would we resolve this as Won't fix, or would we close this as Fixed for now and open another ticket that describes only for "dragend" event?
  4. Kota Iguchi 2016-04-28

    dragend doesn't work because of platform component limitation. I opened new ticket for dragend (TIMOB-23287) so we can track it. Resoving this ticket for now.
  5. Josh Longton 2016-04-28

    Verified that dragstart,scroll and scrollend are fixed and (TIMOB-23287) has been opened for dragend. Tested on: Nokia Lumia 928 (8.1) Windows Simulator (8.1) Microsoft Lumia 640 (10) Windows Simulator (10) Windows 10 Studio: 4.6.0.201604210304 Ti SDK: 5.3.0.v20160421080259 Appc NPM: 4.2.5-3 App CLI: 5.3.0-36 Node v4.4.3 *Closing Ticket.*

JSON Source