IE11 (mobile, windows phone 8.1) Touchend fired without user action.

Hi! I have strange touch events situation using my IE11 mobile (nokia lumia 625, Windows Phone 8.1). When i touch the screen i get 'touchstart' event (this is normal), but after while i get 'touchend' event (my finger is still touching screen). The situation does not occur when after touching the screen, I slide my finger across it (i get touchmove event end everything is fine).

Maybe there is some inactivity handler or something? I tried to add 'context' event handler (to prevent defualt action) and 'touch-action' of canvas element was set to none.

November 23rd, 2014 6:16pm

Hi,

MSIE webbrowsers do not support touch event handlers. Use pointer events or a shim like hand.js for interoperability.

if('ontouchend' in window).....

Post questions about Web development to the IE Web Development forum, or the Windows Phone development forums.

Questions regarding Internet Explorer 8, 9 and 10 and Internet Explorer 11 for the IT Pro Audience. Topics covered are: Installation, Deployment, Configuration, Security, Group Policy, Management questions. If you are a consumer looking for answers or to raise a question, it's highly recommended you head on over to http://answers.microsoft.com/en-us

Free Windows Admin Tool Kit Click here and download it now
November 23rd, 2014 11:44pm

Thanks for your answer Rob. I don't agree that MSIE does not support touch events (maybe you mean webview?), because all of them get fired. The problem is that i get unexpectedly touchend (also pointerup/mouseup) event. I will follow your advice and ask on these sites.

Edit: Ok i think the touchevents appeared on windows phone 8.1 preview for developers.
  • Edited by coderitual Monday, November 24, 2014 11:12 AM
November 24th, 2014 10:58am

You will find Consumer-specific support for Windows Phone 8.1 in these forums: http://answers.microsoft.com/en-us/winphone/forum/wp8

Free Windows Admin Tool Kit Click here and download it now
November 24th, 2014 6:20pm

So here there is a test page: http://www.3site.eu/ie

It is not touchend only, it's the entire pointer circus that makes no sense.

If you start tapping and hold you'll see a pointerup event fired for no reason. If you start tapping, move a little, then even if you stop and keep holding nothing would happen.

This is a huge bug that nobody cared about in this thread. Disappointing, since it's months that this bug exists. If anyone will say that this behavior is expected, then it's not compatible with any other touch based device (yes, it's reproducible even using touch events instead of pointer events)

Please take a look at the demo and fix this MS and IE team, thank you.

March 7th, 2015 9:42pm

FYI...

IE Development Forum
http://social.msdn.microsoft.com/Forums/ie/en-US/home?forum=iewebdevelopment


IE Extension Development Forum
https://social.msdn.microsoft.com/Forums/ie/en-US/home?forum=ieextensiondevelopment


IE Developer Resources
http://www.modern.ie/en-us


IE Developer Center - Key features by area
http://msdn.microsoft.com/en-US/ie/aa740473


IE11 Guide for Developers
http://msdn.microsoft.com/en-us/library/ie/bg182636(v=vs.85).aspx

You will find Consumer-specific support for Windows Phone 8 in these forums: http://answers.microsoft.com/en-us/winphone/forum/wp8

Free Windows Admin Tool Kit Click here and download it now
March 7th, 2015 10:39pm

Just confirming your observations. IE on Windows Phone 8.x has supported both pointer events and standard touch events for some time now and both the touchend event and the pointerup event are not working correctly. Either they don't fire at all, or they fire irrelevantly while the user's finger is still touching the screen. When the latter happens, it is the same as if they hadn't fired, because the touchmove and pointermove events are still actively firing.

If you have a routine that is being started by touchmove/pointermove and ended by touchend/pointerup it will never terminate correctly, because it will be restarted again as soon as the touchend/pointerup events fire irrelevantly before the finger has left the screen. 

The only way around this that I have found so far is to use a timer instead of the end/up events when my web app detects that it is on Windows Phone. It's messy, but there it is.

This is probably not getting noticed because nobody really cares about Windows Phone any more, including Microsoft. I sometimes wonder why I even bother to test my pages on it if Microsoft cares about it even less than the developers trying to work around their bugs. Sigh... 

August 17th, 2015 3:39am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics