N
N
Nikita Melikhov2017-04-04 18:29:27
css
Nikita Melikhov, 2017-04-04 18:29:27

How to remove scroll to top of page when opening fancybox?

There is a site . In the Projects or Broadcast section , when you click on a photo in a "pop-up" block (Fancybox), content opens.
The problem is that when clicked, the main page scrolls to the beginning. How to get rid of it?
The bottom line is that the content inside the popup will be large and should scroll.
PS "Design" please do not discuss :) This is the design of the customer, she wants it exactly as it is.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Tokmakov, 2017-04-04
@VeroLom

$.fancybox.open($element, {
    padding : 0,
    helpers: {
        overlay: {
          locked: false
        }
      }
    });

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question