Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Swipe event for showing the menu on left

$
0
0

Hi All, I have a window with menu view on left side and showing ListView after clicked one of the menu options. I am coding for showing the Left menu at the time of Swipe left and/or Right. This is working fine on iOS. But Android having the issue. When i Scroll the ListView page to see more items. the Swipe event is firing and showing the Left Menu option.

I have restricted the Swipe direction of up and down. But it's showing the Left menu when i scroll the list view page. ( PS: I am Scrolling the page by Thumb finger from bottom to up/right)..

mainView.addEventListener('swipe', function(e){
        if((e.direction!=='up')&&(e.direction!=='down'))
        {               
        if((e.direction === 'right' && menuIsOpen === false) || (e.direction === 'left' && menuIsOpen === true)){
            Ti.API.info(" x: "+e.x+" y: "+e.y+" Direction: "+e.direction);
             mainView.showMenu();       
            }   
        }                   
    });
Please suggest me if you have any solutions. 1.Application Type : mobile, 2.Titanium SDK: 3.2.3.GA, 3.Platform : iOS,Android, 4.Device : iOS simulator, Android emulator and physical device, 5.Host Operating System: OS X 10.9.2, 6.Titanium Studio: build: 3.2.3.201404181442

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>