Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3919] Disable Horizontal bounce in Windows Phone

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2016-07-20T19:01:31.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterSanchi Varma
AssigneeShak Hossain
Created2016-06-24T06:42:42.000+0000
Updated2016-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

Comments

  1. Sharif AbuDarda 2016-07-13

    Hello, horizontalBounce is not available for WIndows platform. http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.ScrollView-property-horizontalBounce

JSON Source