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

Pinch and Rotate not working in Chrome #13

Open
RopoMen opened this issue Jan 19, 2017 · 7 comments
Open

Pinch and Rotate not working in Chrome #13

RopoMen opened this issue Jan 19, 2017 · 7 comments

Comments

@RopoMen
Copy link

RopoMen commented Jan 19, 2017

Hi,

I wanted to use TouchEmulator with Chrome to make my development easier (not needing to debug with ipad). I tested TouchEmulator over here http://rawgit.com/hammerjs/touchemulator/master/tests/manual/hammer.html

and noticed that pinch and rotate is not working with Chrome

OS X El Capitan (10.11.6)
Chrome Version 55.0.2883.95 (64-bit)

Tested by adding breakpoint inside

 function onPinch(ev) {
        if(ev.type == 'pinchstart') { /*Breakpoint on this line*/
            initScale = transform.scale || 1;
        }

        el.className = '';
        transform.scale = initScale * ev.scale;

        requestElementUpdate();
        logEvent(ev.type);
    }

Tested that same demo using Firefox 50.1.0 and it went on that onPinch function and rotate worked also.

@jeroenbraspenning
Copy link

I'm experiencing the same on

OS X El Capitan (10.11.6)
Chrome Version 59.0.3071.115 (Official Build) (64-bit)

I've found information about a PointerEvents change https://github.com/hammerjs/hammer.js/issues/1084 and other similar posts but i couldn't find a concrete reason why this doesn't work on Chrome.
https://github.com/hammerjs/hammer.js/issues/1097

Anyone more info on this?

It works on Safari by the way.

@MickL
Copy link

MickL commented Aug 14, 2018

1 1/2 years later, still not working in Chrome @jtangelder :( I've also tested Safari and Firefox which don't work, too.

Im on macOS High Sierra 10.13.5 and using latest Chrome / Firefox / Safari

@adrianlyjak
Copy link

pinch/rotate don't work for me on chrome 69, firefox 62
macOS 10.13.6
work on safari 12.0 though

@DotFreelance
Copy link

macOS 10.14

Does not appear to send any events that Hammer can pick up in any browser tested.

I think it's safe to call this package a dead package.

@creativefctr
Copy link

same issue here ...

@marijntje42
Copy link

Check out this: #22
Got it working for me!

@kflorence
Copy link

Thanks @marijntje42 -- that was the missing piece for me as well. Also don't forget that pinch is disabled by default: https://hammerjs.github.io/recognizer-pinch/

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

8 participants