M
M
mcrack252018-12-21 18:10:52
DLE
mcrack25, 2018-12-21 18:10:52

Slick Slider + HighSlide firing popup on scroll?

Hello, who typeset under DLE, in general, such a problem, I made a slider on Slick Slider and now the task is to make it so that when you click on the image of the slider, it increases.
DLE has such a built-in gallery module, it turns on automatically, it is called HighSlide, and now when I drag the mouse over the slide, the slider scrolls and immediately opens to the full, as if they work one after the other, please tell me what can be done in this case ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mcrack25, 2018-12-22
@mcrack25

In general, such things, I managed to implement this thing, but I used a not quite correct method for this:
First, I assigned hs.init to a certain variable, then I assigned hs.init itself to false, as if it gives us turning off highslide.
The slick slider has actions that fire before and after the change, I did this:
in the event that fires before the swipe, I again assign hs.init = false, and in the event after the slide I assign our variable hs.init, well, as it were works, but sometimes the opening of the image in a new window skips, well, this is most likely because the hight slide does not have time to turn on, or maybe because I'm doing something wrong.
As a result, what I came up with: I put owl carusel 2 instead of slick slider and, oddly enough, everything works there without any hacks, but I had to redo the css to make a name that produces dle instead of the owl-carusel class (like).
Maybe it will help someone, if you managed to do it on Slick Slider, please tell us what you did, I will be very grateful.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question