[AC-3919] Disable Horizontal bounce in Windows Phone
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2016-07-20T19:01:31.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Sanchi Varma |
Assignee | Shak Hossain |
Created | 2016-06-24T06:42:42.000+0000 |
Updated | 2016-07-20T19:01:31.000+0000 |
Description
Device : Lumia 540
Issue : The front screen on my Windows phone is horizontally bouncing which I want to disable.
I have tried :
<ScrollView id="scrollView" horizontalBounce="false">
But as it is not supported for Windows phone, it did not work as expected.
Also I tried event listeners :
this works on alloy window element :
$.window.addEventListener('tocuhstart', function(e) {
Ti.API.log('tocuhstart Window: '+ e.x);
});
But "*touchmove*" and "*touchend*" & "*swipe*" DO NOT work/detect on either of the "*Window*" element, "*ScrollView*" element or wrapper "*View*" element
Please help on how to disable horizontal bounce in windows phone.
My xml structure is like :
<Alloy>
<Window id="basicWindow" class='container'>
<View class="view">
<Require type="widget" src="Menu" id="Menu" title='L("home")' />
<ScrollView id="scrollView" verticalBounce="true">
<View class="wrapperView">
.
.
.
<View class="innerView1">
....
</View>
<View class="innerView2">
....
</View>
<View class="innerView3">
....
</View>
.
.
.
*EDIT 1* :
I tried adding touch move event on individual "innerView" elements... with code :
var lastX;
function touchStart(e) {
lastX = e.x;
}
function touchMove(e) {
var currentX = e.X;
if (currentX !== lastX){
return;
}
}
This code is inhibiting both vertical and horizontal movement
Hello, horizontalBounce is not available for WIndows platform. http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.ScrollView-property-horizontalBounce