Skip to content
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

Hammer does not work on android works only on IOS #1071

Open
georgesmarkus opened this issue Feb 6, 2017 · 4 comments
Open

Hammer does not work on android works only on IOS #1071

georgesmarkus opened this issue Feb 6, 2017 · 4 comments

Comments

@georgesmarkus
Copy link

Hammer works fine on IOS devices, however it does not work on android devices, also on my surface pro chrome browser

@jjdz
Copy link

jjdz commented Feb 9, 2017

Same here, not working on surface pro / chrome

@ricco24
Copy link

ricco24 commented Feb 11, 2017

Whats going on here? Version 2.0.4 was ok for ios/android. In version 2.0.6 swipe events stops work for android devices and in version 2.0.8 totally does not work on android devices ...

@ptorrent
Copy link

ptorrent commented Mar 8, 2018

Same here, working well only on IOS

@metscore
Copy link

metscore commented Jun 7, 2018

I know this is an fairly old issue (that still seems to be open). Has anyone heard of any fork or other solution to remedy the problem ?

I use hammer on an asp.net mvc application and it works fine to pinch zoom on IOS (using both Safari and Chrome) but it does not work on Android 8.0 using Chrome or Opera Mini.
The page behaves almost like it is hung, unless I "disable my zoom code" (by just returning the function) as seen below. (The zoom code basically sets the scale css property of the element that is to be zoomed)

    mc.on("pinch", function (ev) {
        if (isAndroid()) {
            return;
        }
        // Perform "zoom code"
        zoomByOrigin(......);
        ev.stopPropagation();
    });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants