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

Android: Swipe event-listener causes scrollView not to fluidly scroll up / down.

$
0
0

I have a swipe event listener on my main window, this event has the following code:

if (e.direction === 'up' || e.direction === 'down') return true;
          if (e.direction === 'right' && $this.animated) $this.toggleSidebar.apply($this);
          else if (e.direction === 'left' && !$this.animated) $this.toggleSidebar.apply($this);
The up/down is to try and prevent this event from blocking the swiping gesture to fluidly scroll through a scrollView however no matter how I try to prevent it return; return true; return false; it completely blocks all of my scrollviews from fluidly sliding up and down with the swipe gesture.

Was wondering if anyone has a work-around or fix?


Viewing all articles
Browse latest Browse all 8068

Trending Articles



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