[TIMOB-19958] Windows: Missing events in ScrollableView
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2016-04-28T14:02:24.000+0000 |
| Affected Version/s | Release 5.1.0 |
| Fix Version/s | Release 5.3.0 |
| Components | Windows |
| Labels | qe-5.3.0 |
| Reporter | Kota Iguchi |
| Assignee | Kota Iguchi |
| Created | 2015-11-13T07:01:15.000+0000 |
| Updated | 2016-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.
PR: https://github.com/appcelerator/titanium_mobile_windows/pull/518
dragenddoes not appear to be working.dragstart,scrollandscrollenddo 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**Reopening*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();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::ScrollViewerbut 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 asWon't fix, or would we close this asFixedfor now and open another ticket that describes only for "dragend" event?dragenddoesn't work because of platform component limitation. I opened new ticket fordragend(TIMOB-23287) so we can track it. Resoving this ticket for now.Verified that
dragstart,scrollandscrollendare fixed and (TIMOB-23287) has been opened fordragend. 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.*