ui
ui copied to clipboard
[v6] disabled `dragToClose` allows dragging
Describe the bug
In v5, setting dragToClose to false disabled the ability to drag fancybox layer altogether, which fit well also when displaying larger html content that had scrollbars.
In v6, with the same settings, horizontal dragging is still possible, offsetting also scrolbars etc.
Expected
With dragToClose disabled, fancybox overlay should not react to/await drag gestures at all, as in v5.
Reproduction
- Setting
dragToClose: falsein fancybox options, - Dragging
htmltype slide with ie mouse on desktop.
Additional context
No response
I second that. I too am here looking for a solution to this problem.
Setting Carousel gestures to false resolves this behavior, ie:
Carousel: {
gestures: false,
}
@magicDvlp Can you confirm?
Hi, Yes, @jurajkapsz is right, here's how to disable touch actions -
Fancybox.bind("[data-fancybox]", {
Carousel : {
gestures: false
}
});
Setting Carousel gestures to
falseresolves this behavior, ie:Carousel: { gestures: false, } @magicDvlp Can you confirm?
Thank you! Works great!