Skip to main content

All Questions

0 votes
1 answer
2k views

Hammerjs not working on Chrome or Safari in IOS (made with Vuejs)

I'm working on an app that has a navdrawer and i added the gesture swipe with hammerjs to close the navdrawer when swiping left, the code looks like this: <template> <nav id="navbar" class=...
Carlos Pisarello's user avatar
2 votes
0 answers
129 views

Hammerjs swipe locks the window.innerHeight on Chrome Android

I've run into an issue with hammerjs on Chrome Android 66. I have a side bar menu that's position:fixed, with top:0 and bottom:0. When the menu item opens, the layout is correct for when URL Bar at ...
jkdude's user avatar
  • 323
0 votes
1 answer
260 views

Hammer.js preventing hyperlink clicks in Android Webview

This is a Hammer.js issue that does not happen in desktop browsers. I have verified this in a WIP Android app that utilizes WebView EDIT: I have also verified this happens on the "Internet" browser (...
Phil's user avatar
  • 2,118
1 vote
0 answers
697 views

hammerjs pan event not working in cordova app

I'm using Hammer.js with the jQuery plugin in a Cordova app. I am also using zepto and zepto touch. The reason for having both (currently) is that I recently used only zepto. But the touch/gestures ...
user2123796's user avatar
2 votes
1 answer
3k views

Using Hammerjs for pinch and zoom on image

So I have a header.. and an image. On tablet I want to be able to pinch and zoom into the image but i'm struggling. I've looked at other similar questions. But as I'm still learning, i'm not fully ...
pourmesomecode's user avatar
0 votes
0 answers
108 views

How to pull the exact animation mentioned in the Hammer.js homepage

I want to know how exactly to get this output. Mentioned in the Hammer.js homepage itself. I tried to do it by copying the same code and while emulating, I get the event notifications as 'spanleft' or ...
elembivos's user avatar
  • 399
1 vote
1 answer
596 views

Implement a vertical scrolling on a canvas

I try to implement a vertical scroller with touch pan event on a large background in a HTML5 canvas. I use hammer JS to recognize pan gesture: http://hammerjs.github.io/ It works fine when I move y ...
user2487815's user avatar
2 votes
0 answers
530 views

hammer.js swipe android 2.3.5 not working

I'd like to include hammer.js in my phonegap / cordova app. Version: Hammer.JS - v1.0.10 - 2014-03-28 But it seems that the example found here: http://rawgithub.com/EightMedia/hammer.js/master/...
Gisela's user avatar
  • 1,224
0 votes
0 answers
521 views

Hammer.js - links not working on Android

Working on a project that uses Hammer.js. Everything is working fine on iPhone, however on Android the links in my footer aren't working on the pages that use Hammer.js. I'm using a php include for ...
Pdnell's user avatar
  • 321
1 vote
1 answer
3k views

Hammer.js: Android website pinch events not firing

I want to capture pinch events on an image in a webpage using hammer.js (or anything else is also fine). I've got two implementations of which neither works as expected. I'm testing with Android 4.1 ...
hofnarwillie's user avatar
  • 3,640
0 votes
1 answer
2k views

Hammer.js pinchin/pinchout events not firing (How to debug android)

I'm using hammer.js to capture pinch events in order to simulate zooming in and out, however none of the events are firing when I test it with my Galaxy Tab 2 (android 4.1) html: <img class='...
hofnarwillie's user avatar
  • 3,640
7 votes
2 answers
5k views

Detect pinch to zoom when 'user-scalable' is set to yes

How can I detect the scale (or distance pinched) of the pinch to zoom when the meta name="viewport" is set to user-scalable=yes? I've tested on Android but the pinch to zoom can't be detected if the ...
user avatar
4 votes
1 answer
2k views

Detect Android pinch to zoom innerWidth with JavaScript/Hammer.js

I want to know the innerWith/viewport width of the pinch to zoom when it's zoomed. If it's below 500 px I want to change the image with: $("img#ad").attr("src", "http://img0.www.suckmypic.net/img/1/...
user avatar