unveil icon indicating copy to clipboard operation
unveil copied to clipboard

unveil not working in -webkit-overflow-scrolling: touch; container

Open splatterb0y opened this issue 11 years ago • 7 comments

Hi guys,

the query plugin is not working if you use a container with the CSS Attribute -webkit-overflow-scrolling: touch; which is very commonly used in iOS and Android Websites and Web Apps.

Cheers splatterb0y

splatterb0y avatar Aug 27 '13 13:08 splatterb0y

Same goes for overflow-x: hidden;

Only the first image, which is visible on page load, shows up. The rest just display holding image.

Thanks

paulbamford avatar Sep 01 '13 17:09 paulbamford

Hmmm when I set the height to 500px or something it seems to work, when I attach a scroll event to the div and call unveil on it, but this is not optimal I guess.

splatterb0y avatar Sep 02 '13 05:09 splatterb0y

Awesome catch! Thanks for posting it. I haven't had time to investigate this but I'm sure it's because the unveil function is only triggered by scroll and resize events atm.

luis-almeida avatar Sep 02 '13 12:09 luis-almeida

After hours of debugging I finally found out this is causing Unveil.js to not work properly within my WebApp. Scrolling within the div simply doesn't fire the "scroll" event that unveil is waiting for.. :/ Any plans for a fix or anyone who found a hack or something to make it work?

m-vdv avatar Oct 07 '13 19:10 m-vdv

This fiddle might show a possible solution: http://jsfiddle.net/pLk4k/

m-vdv avatar Dec 27 '13 23:12 m-vdv

@webslash I wouldn't call it a solution, but it's definitely a workaround until webkit-based browsers fire an "on scroll"-event for elements with the "-webkit-overflow-scrolling: touch;" property.

splatterb0y avatar Dec 28 '13 11:12 splatterb0y

I have -webkit-overflow-scrolling: touch; , and v2 works with it

pcompassion avatar Jul 28 '14 10:07 pcompassion