Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12201] Android: e.PreventDefault(ontouchmove) does not disable the swipe on the ScrollableView

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionNeeds more info
Resolution Date2013-06-04T17:08:02.000+0000
Affected Version/sRelease 3.0.0
Fix Version/s2013 Sprint 12 Core, 2013 Sprint 12
ComponentsAndroid
LabelsSupportTeam, look1
ReporterNikhil Sharma
AssigneeAllen Yeung
Created2013-01-03T15:20:41.000+0000
Updated2017-03-16T20:43:57.000+0000

Description

The customer is listening to the swipe event on certain divs, but on Android the scrollableView is navigation to the next or previous view instead of firing the event in the webView. On Android, e.PreventDefault(ontouchmove) does not disable the swipe on the scrollableView. In the attached project I've included the Zepto.js

Steps to reproduce

1. Create an alloy project in the studio. 2. Replace its app folder with the attached app folder 2. Open the application, when try to swipe the upperleft image it'll swipe the scrollableView. The screencast link is here showing how it works fine on iPad http://www.youtube.com/watch?v=AKqzmnNXts8

Attachments

FileDateSize
app.zip2013-01-03T15:36:57.000+00006654634

Comments

  1. Allen Yeung 2013-05-07

    [~shossain], is there any update on the a test case? e.PreventDefault() is not a Titanium API, so I'm not sure why that is listed in the ticket. After looking through it a little, I suspect that this issue arises because in Android, we don't support the 'willHandleTouches' property on a webview (http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.WebView-property-willHandleTouches) I tried removing the property in iOS and I get similar behavior as I do in Android (you can scroll the scrollable view when swiping the webview). If we could have a reproducible without alloy, that would be great. It would also be helpful if we had a testcase that did not rely on third party libraries.
  2. Allen Yeung 2013-06-04

    Resolving as needs more info for now. Please reopen when there is an updated test case.
  3. Lee Morris 2017-03-16

    Closing ticket as the information that was requested was never provided.

JSON Source