ui icon indicating copy to clipboard operation
ui copied to clipboard

[v6] disabled `dragToClose` allows dragging

Open jurajkapsz opened this issue 5 months ago • 1 comments

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.

Image

Expected

With dragToClose disabled, fancybox overlay should not react to/await drag gestures at all, as in v5.

Reproduction

  1. Setting dragToClose: false in fancybox options,
  2. Dragging html type slide with ie mouse on desktop.

Additional context

No response

jurajkapsz avatar Jun 26 '25 11:06 jurajkapsz

I second that. I too am here looking for a solution to this problem.

magicDvlp avatar Jun 26 '25 14:06 magicDvlp

Setting Carousel gestures to false resolves this behavior, ie:

Carousel: {
  gestures: false,
}

@magicDvlp Can you confirm?

jurajkapsz avatar Jun 30 '25 10:06 jurajkapsz

Hi, Yes, @jurajkapsz is right, here's how to disable touch actions -

Fancybox.bind("[data-fancybox]", {
  Carousel : {
    gestures: false
  }
});

fancyapps avatar Jul 02 '25 11:07 fancyapps

Setting Carousel gestures to false resolves this behavior, ie:

Carousel: { gestures: false, } @magicDvlp Can you confirm?

Thank you! Works great!

magicDvlp avatar Jul 07 '25 20:07 magicDvlp