Swipe icon indicating copy to clipboard operation
Swipe copied to clipboard

Swipe working on windows phone 8 and windows 8 (touch devices)

Open dineshduggal opened this issue 11 years ago • 13 comments

Made the swipejs plugin also working on a windows touch device (Windows Phone 8 / Windows 8)

dineshduggal avatar Dec 10 '13 21:12 dineshduggal

@dineshduggal - I manage a fork of Swipe, but don't have a Windows phone in my testing kit yet. What's the behavior of the current implementation of Swipe on a Windows phone? Does the browser refuse to recognize a touch event?

cferdinandi avatar Jan 23 '14 21:01 cferdinandi

Microsoft has a different model of handling touch events (including the event object you get in the fuction is a little bit different), for more information see: http://blogs.windows.com/windows_phone/b/wpdev/archive/2012/11/15/adapting-your-webkit-optimized-site-for-internet-explorer-10.aspx#step4

dineshduggal avatar Jan 25 '14 10:01 dineshduggal

Nothing happens when I swipe

shidhincr avatar Feb 25 '14 10:02 shidhincr

it is not working with windows phone 8.. i replaced the old swipejs file with this.. but it doesn't work.

nawazsk avatar Apr 01 '14 12:04 nawazsk

I will test the code again to see what goes wrong. Will check in the fix soon.

dineshduggal avatar Apr 01 '14 12:04 dineshduggal

I have tested it on my HTC 8S with Windows Phone 8 on it and it works. Please note in your HTML you need to remove/change the meta tag "X-UA-Compatible" otherwise the JavaScript can not detect if pointer event model is avaiable due to running IE compatible mode.

For example in the original HTML file of swipejs it contains this meta tag: I have removed this in my code check-in to make it work. Please test with my html and js file to see if it works.

Let me know if this works...

dineshduggal avatar Apr 01 '14 16:04 dineshduggal

@dineshduggal - I don't have a Windows phone so I can't test this, but does X-UA-Compatible with the latest version of IE work (versus IE8 in the original file)?

<!-- Force latest available IE rendering engine and Chrome Frame (if installed) -->
<!-- Adapted from HTML5 Boilerplate -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

cferdinandi avatar Apr 01 '14 18:04 cferdinandi

I did a test with that meta tag and it works fine.

dineshduggal avatar Apr 10 '14 19:04 dineshduggal

guys, did this get into the release as I'm having the same issues. I've tried those meta-tags but that didn't help. I'm pretty sure my implementation worked before, but I've noticed that after CYAN update it has stopped working. swiping from left to right causes the browser load the previous page (!). owl-swipe plugin for jquery works flawlessly but I would like to avoid to use the jquery

tfnsw-spatial avatar Feb 01 '15 22:02 tfnsw-spatial

@tfnsw-spatial Nope. @thebird has abandoned this one. Haven't seen any updates or movement here in over a year. You might want to take a look at https://github.com/dimsemenov/PhotoSwipe.

cferdinandi avatar Feb 10 '15 16:02 cferdinandi

@tfnsw-spatial @cferdinandi Hi Guys, I maintain my own fork of this project with some bug-fixes and new features https://github.com/lyfeyaj/swipe Welcome to submit pull request, feature request or any issues

lyfeyaj avatar Feb 11 '15 01:02 lyfeyaj

@lyfeyaj Nice! I'd been doing the same thing for a while, but I just don't have the energy for it anymore. Glad some other folks are taking this on.

cferdinandi avatar Feb 11 '15 02:02 cferdinandi

Hello was this issue fixed?

ThekhoN avatar Sep 29 '16 07:09 ThekhoN