[Silk UI Mobile] Make component not swipeable (carousel + tab)

[Silk UI Mobile] Make component not swipeable (carousel + tab)

  
Forge Component
(17)
Published on 19 Oct by OutSystems R&D
17 votes
Published on 19 Oct by OutSystems R&D

Is there a way to disable swiping gesture on navigation tab and on carousel?

Many thanks

Solution

Hey Eric!

As of this moment, no, not without going into the code and making substantial changes to it, sorry. :/


Solution

Ah i c thanks. So I must clone the module and do my own changes to disable the gesture. 

Maybe an option to have swipe/not swipe gesture could be useful in future release.

It's being considered, thank you and have a good day!

For my scenario, it could be disabled by creating a block which blocks all touch-events.
The essence is wrapping all touch-events in a Block with a placeholder:

function stopPropagation(e) {
     e.stopPropagation();
}

As shown in this CodePen: https://codepen.io/anon/pen/vWymPr?editors=1011

To use it easily within OutSystems, I wrapped it in a Block with a placeholder and a changable setting to enable/disable it. (too much work to share the block on this forum unfortunately).