Muuri: Changing dragEnabled option on fly

Created on 31 Jan 2019  路  1Comment  路  Source: haltu/muuri

Hi!
Thanks for the great job!
I have an issue with update dragEnabled option on fly. I need to change this option to true value when I check some checkbox. I read about issue like I have in this issue #189 (It works well on desktop). But it not working when dragEnabled: false or hasn't value.
If I set dragEnabled: true, I have a problem on mobile devices (Android) with scrolling (content not scrolling).
Thanks)

question

Most helpful comment

You need to enforce the items' touch-action CSS property to 'auto' when drag is disabled. 'dragStartPredicate' is the "correct" solution for now to disabling/enabling drag on the fly.

>All comments

You need to enforce the items' touch-action CSS property to 'auto' when drag is disabled. 'dragStartPredicate' is the "correct" solution for now to disabling/enabling drag on the fly.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dedurus picture dedurus  路  4Comments

bsherwoodofdaptiv picture bsherwoodofdaptiv  路  4Comments

niklasramo picture niklasramo  路  4Comments

Sashkan picture Sashkan  路  3Comments

abhipanda picture abhipanda  路  3Comments