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.

Add `touchAction` to the manager...

See original GitHub issue

I’m using a swipe left/right on an element that needs to scroll vertically. It seems that in order for this to work on iOS, I need to add the touchAction property to the manager. I’m a little unclear on how to do this. The README mentions two methods to configure recognizers, but doesn’t go into detail on either.

How would one add the touchAction property per the instructions at http://hammerjs.github.io/touch-action/

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:2
  • Comments:8

github_iconTop GitHub Comments

9reactions
Akari1987commented, Nov 10, 2018

I had same issue on android firefox. Using swipe left, it can’t be vertical scrollable. I soleved this issue by bellow.

VueHammer.config.swipe = { direction: 6, };

https://github.com/hammerjs/hammer.js/issues/1173 https://hammerjs.github.io/api/#constants

4reactions
ptandlercommented, Sep 16, 2019

I found another workaround: You can set the touch-action via CSS and !important - that will override the touch-action set by Hammer as style: touch-action: pan-y !important;

Read more comments on GitHub >

github_iconTop Results From Across the Web

Touch Actions - Appium
MultiTouch objects are collections of TouchActions. MultiTouch gestures only have two methods, add , and perform . add is used to add another...
Read more >
Touch Action - Hammer.js
Add multi-touch gestures to your webpage. ... The Touch-action property ... You can overwrite this by giving the option touchAction to the Manager....
Read more >
Touch Actions in Appium - TechTutorialz
An Overview of the TouchAction / MultiAction API. What is Touch Action? ... add is used to add another TouchAction to this MultiTouch....
Read more >
How to Perform Multi-touch Actions in Mobile App | Katalon Docs
Handling Multi-touch Action in automation testing; Add Wait For Element Present item. Initialize Katalon Mobile Driver to Appium Driver ...
Read more >
Chapter-11: Automating gestures - Kobiton
Appium supports these gestures using the TouchActions class. ... It has a add(TouchActions touchActions) method so in which we need to pass a...
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