You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "jcesarmobile (JIRA)" <ji...@apache.org> on 2015/10/09 13:14:27 UTC

[jira] [Commented] (CB-7958) touchend event not firing when released outside webview

    [ https://issues.apache.org/jira/browse/CB-7958?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14950224#comment-14950224 ] 

jcesarmobile commented on CB-7958:
----------------------------------

I've seen this issue before on a stackoverflow question, but it was deleted (you can see here if you have enough reputation to see deleted posts http://stackoverflow.com/questions/31695733/could-cordova-be-dropping-a-touch-event)

It's not a cordova bug, its's really a UIWebView´s bug, when you change from the UIWebView to another native component (like a navigation bar, toolbar, native view) and then go off the screen, the touchend sometimes isn't called.

The user who asked that question sent the bug report to apple

The thing is, the native touchend is called, but the javascript touchend isn't, even being a UIWebView bug, maybe we can fix it following this answer
http://stackoverflow.com/questions/12094045/javascript-touchend-scroll-event-dont-work-in-uiwebview-in-ios-4
(calling the ontouchend() when the native touchend is called, but maybe it duplicates the touchends)


> touchend event not firing when released outside webview
> -------------------------------------------------------
>
>                 Key: CB-7958
>                 URL: https://issues.apache.org/jira/browse/CB-7958
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 3.6.3
>         Environment: iOS 8, iPhone 6
>            Reporter: Knut Eirik Leira Hjelle
>
> When starting a touch event inside of webview, it is possible to slowly slide the finger to (and off) the edge of the screen and never get the touchend event. Making the webview fullscreen seems to remove the issue.
> The only information I have found about this issue is a stack overflow post (http://stackoverflow.com/questions/26721447/ios-no-touchend-event-for-not-fullscreen-webview), which is why I tried to replicate the problem with a fullscreen webview.
> I have not been able to reproduce this problem on any devices except the iPhone6 on iOS 8.
> Created a small cordova project which makes the bug reproducible.
> https://github.com/hjellek/cordova-ios-touch-issue



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org