Topic: Disable swipe on sideNav

Arnt Oddvar Pedersen pro asked 5 years ago


Hello!

I'm working on optimizing a template I'm creating for mobile use. I have 2 buttons that both activate a sideNav on the left and right edge of the browser.

On mobile however, these menus are quite.. "twitchy" as in they'll get stuck when swiping left/right and it's even possible to use the "pinch method on screen to open both menus at once, locking you out of the website pretty much.

Is it possible to disable swipe support on the sideNav menus?


Piotr Glejzer staff commented 5 years ago

I think for now is not possible. Sorry about that.


Piotr Glejzer staff answered 5 years ago


Hi, can you try this solution?

   $('#myModal').on('shown.bs.modal', function() {
            $(document).off('focusin.modal');
        });


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.7.5
  • Device: Android, iOS
  • Browser: Chrome, Firefox
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No
Tags