Slick: Horizontal scrolling oh hover - bug?

Created on 16 Feb 2015  路  8Comments  路  Source: kenwheeler/slick

Hi everyone!
I'm using this plugin and it's real good but I can't understand why on hover appear the horizontal scrollbar and my entire page move left when the slide "sliding".
Was one of my problem or it's common? Maybe it's a bug.

I solved that adding overflow-x: hidden to the entire body.
Any idea?
Thanks!

schermata 2015-02-16 alle 10 03

Most helpful comment

I think the issue with images and the horizontal scrollbar that appears when hovering over them has to do with Pinterest buttons. If this is the issue, you can add the "data-pin-nopin" attribute to your thumbnails.

All 8 comments

Yup, probably you did something wrong.

Ok, now of real:
probably this (or similar) is the issue

.slick-slider:hover .slick-prev{right: -25px;}

if not - give us example ;)

hi @dghez - this is a support issue for your own code/website, please seek support from a suitable source. In the Github issue tracker we are here to help solve issues with the plugin; not your website :grinning:

https://github.com/kenwheeler/slick/blob/master/CONTRIBUTING.markdown

I'm having the same, or similar, problem. The same behavior also appears on one of the demos on your site. If you hover the mouse over the images on the "Lazy Loading" demo, a horizontal scrollbar appears.

http://kenwheeler.github.io/slick/#demos

I think the issue with images and the horizontal scrollbar that appears when hovering over them has to do with Pinterest buttons. If this is the issue, you can add the "data-pin-nopin" attribute to your thumbnails.

Well spotted Julian. Spent ages trying to work out what was causing that, but disabling the pinterest extension on chrome seems to have fixed it. Hopefully the data attribute you mention will be a better fix.

Hmm. "data-pin-nopin" on the image tags doesn't seem to fix it. Disabling the pinterest extension definitely does.

Yes, me too, it seems that Pinterest is the bad boy.

Buffer extension does the same.
I solved the issue adding pointer-events:none to the images.
It's difficult to add exeptions to all possible extensions out there.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

REPTILEHAUS picture REPTILEHAUS  路  3Comments

hoghamburg picture hoghamburg  路  3Comments

eirikrlee picture eirikrlee  路  3Comments

stephane-r picture stephane-r  路  3Comments

yangkennyk picture yangkennyk  路  3Comments