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.

Experiencing gesture issue on mobile

See original GitHub issue

It seems that ALL directions of the gesture is being used by the gallery component. I am able to swipe left and right to change the image but swipe up and down to scroll is prevented.

Here is my gallery options:

        imageSwipe: true,
        preview:false,
        thumbnailsSwipe: true,
        previewSwipe: true,
        thumbnails: false,
        width: "100%",
        height: "250px"

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
lukasz-galkacommented, May 2, 2018

@PepeBel4 here https://github.com/lukasz-galka/ngx-gallery/blob/master/src/index.ts I disabled vertical scroll in hammerjs, there is a chance that someone or other plugin overrides this configuration. Could you try to add this to your module?

import { HammerGestureConfig, HAMMER_GESTURE_CONFIG } from '@angular/platform-browser';

export class CustomHammerConfig extends HammerGestureConfig  {
    overrides = <any>{
        'pinch': { enable: false },
        'rotate': { enable: false }
    };
}

    providers: [
        { provide: HAMMER_GESTURE_CONFIG, useClass: CustomHammerConfig }
    ]
1reaction
rmschotscommented, May 18, 2018

@lukasz-galka I had the same issue and your custom hammerjs configuration indeed fixes it. No idea which other library overrides the pinch/rotate settings though.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Top 7 Ways to Fix Gestures Not Working on Android
Top 7 Ways to Fix Gestures Not Working on Android ; Step 1: Open the Settings app on your phone and navigate to...
Read more >
Android 11 gestures not working properly - Google Support
Since I upgraded to android 11 the gesture navigation never goes away. there's always a white bar at the bottom of the screen...
Read more >
Unresponsive Mobile Gestures: Your mobile app's hidden ...
As you can see, unresponsive gestures can signal problems on a functional level, as well as problems on a design level. These problems,...
Read more >
Why Android's gesture navigation fails (and how to fix it)
Because, in reality there is only one main gesture in the gesture navigation. This is the first problem. The problem is not that...
Read more >
Why Implementing Swipe Gestures Causes A Mobile ...
These custom swipes bypass the native swipe gestures and are not accessible. You'll need to add logic to bypass the gesture with assistive ......
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