-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working in standard browser on andriod #5
Comments
Hi, First, thank you for writing an angular module for the hammer library. Here's what I've been seeing so far:
|
Thanks for your Report, I need to check the pinch on my android. Any other gestures you tried On Monday, October 21, 2013, Louis Wilbrink wrote:
Register on http://zwoup.com for the next Generation Shopping List on your |
Hi, I've been trying to use hm-Swipe which isn't working. GreeTz Thor |
hm-Swipe triggers on Android / Chrome for me. I'll keep the feedback coming as I bootstrap this into my current project. |
Update: hm-Swipe triggers in Android / Chrome, but I get an undefined value when accessing event.gesture. (I'm trying to preventDefault on it) |
hm-double-tap triggers on Android / Chrome, no errors thrown, but the preventDefault() function has no effect (still triggers a browser zoom). This also occurs on iPad 4 / iOS 7 / Chrome: $scope.doubleTapped = function (event) { |
can you please post a fiddle? |
Hi, Here is a fiddle with swipe that does not work on standard android brower: http://jsfiddle.net/cREN2/5/ Thnx... Thor |
I miss clicked :-s... didn't mean to close the issue. |
Don't you get valid $log.log() output with this fiddle? |
Nope, On my android smartphone there is no console, but I changed the log to an alert(); and it didn't pop-up. It doesn't seem to trigger the 'OpenTekst' or 'OpenImage' functions. On other browsers it does. GReetZ |
Hammer JS demo site works for you, right? I do not see any difference between a tap, hold or swipe in calling back, so I am wondering why some gestures work and others don't. I need to digg deeper, but that will take a few days, sorry. |
Yes, I can confirm that the hammer JS demo works on the standard browser of both my android devices Thnx for investigating this issue. GreeTz |
So the issues I'm seeing seems to be related to hammerjs on Chrome 30. I made plnkr to test hammer here: http://embed.plnkr.co/OkFBsl5JGE3h7AqfQFCd/preview Added an issue here: hammerjs/hammer.js#388 |
I seem to have the same problem on some recent Android devices with recent version of Chrome. HammerJS demos angular-gestures demo app |
Just a note: got swipe to work but you have to swipe like super fast so that it actually registers the swipe event. which isn't the case with Hammer. I saw that the sources of angular-gestures use Hammer version 1.0.5, so what I did is replace the Hammer part by version 1.0.6, but still no success, same result : have to swipe super fast on Android to make it register. Which is a bummer. Don't know if I should continue with angular-gestures or use ngTouch. I used the $swipe service before and was kind of disapointed. Oh well... |
have you tried to set swipe_velocity: 0.7 to something lower, like 0.4 ? |
I was having the same issue with the swipe needing to be very fast. swipe_velocity: 0.2 seemed about right. |
My code looks like this: <body hm-swipe-left="goTo($event)" hm-swipe-right="goTo($event)" hm-swipe-right-opts="{swipe_velocity: 0.2}"> Do you want me to fill a bug? |
can you guys please check if issue is still open after migrating to hammer 2.0 ? |
Yes, there is still no swipe default on my emulator/phone/pad(all 4.x, but another phone-Android 2.3.7 does work), but use: swipe_velocity: 0.2 maybe work: now it works on emulator. |
Still not work on phone/pad(4.x). Works on emulator but not very responsible. Only works on Android 2.3.7 perfectly. |
What does you mean: after migrating to hammer 2.0 ? |
Hi,i have used the module and finded the same problem.And i just want to know that the problem is solved or not? |
The gestures don't seem to work on the standard browser of an andriod device.
I've tested it on a Android 4.1.2 and 4.0.3.
If I user the chrome browser on those android devices, it works fine, but not when I use the standard browser. Since most people still use the standard browser that is clearly an issue.
GreeTz
Thor
The text was updated successfully, but these errors were encountered: