question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Swipe event doesn't work in Chrome 55.0

See original GitHub issue

We use leftSwipe and rightSwipe to detect the event but neither of it works in Chrome with version higher than 55.0. But before it worked in Chrome 54.0 and version lower than 55.0. Also tried in Firefox and Safari, and both of them work fine.

hammer.add(new Hammer.Swipe({ event: "leftSwipe", direction: Hammer.DIRECTION_LEFT }));
hammer.add(new Hammer.Swipe({ event: "rightSwipe", direction: Hammer.DIRECTION_RIGHT }));

This problem can also be test here https://hammerjs.github.io/

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:11
  • Comments:30 (2 by maintainers)

github_iconTop GitHub Comments

51reactions
attikscommented, Mar 11, 2017

FYI

I’ve solved my problem (Swipe not working on Chrome 56 on Android) using this

      var hammertime = new Hammer.Manager(document.querySelector('.l-main'), {
        touchAction: 'auto',
        inputClass: Hammer.SUPPORT_POINTER_EVENTS ? Hammer.PointerEventInput : Hammer.TouchInput,
        recognizers: [
          [Hammer.Swipe, {
            direction: Hammer.DIRECTION_HORIZONTAL
          }]
        ]
      });
18reactions
arschmitzcommented, Jan 26, 2017

I think this is due to chrome making touchEvents passive by default. Ill try to find time to lookinto this and fix this week

Read more comments on GitHub >

github_iconTop Results From Across the Web

Touch events not working in Chrome 55+ / Android
Solution is to open chrome://flags and set Pointer Events to Disabled. Is there any other way to solve this since it is not...
Read more >
Swipe up from shelf is no longer working - Google Support
Hello, after my Chromebook updated I am no longer able to access my apps my swiping up from my shelf. Is there a...
Read more >
Jquery Mobile Swipe events are not firing - Stack Overflow
I have my smartphone connected via usb cable and track the debugging via chrome developer tools. Click on the device triggers the click...
Read more >
466167 - Chrome click / touch event is not working ... - Monorail
Most browsers do fire those events on clicks. ... I have a similar issue too. Click events only fire when a finger is...
Read more >
New In Chrome 55 - Chrome Developers
You had a mouse, you moved it around, sometimes you pushed buttons, and that was it. But this, doesn't work so well on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found