scrollmonitor icon indicating copy to clipboard operation
scrollmonitor copied to clipboard

Doesn't work inside iframe on iOS (workaround found)

Open GordanRatkovic opened this issue 8 years ago • 4 comments
trafficstars

Tested with the demo page

GordanRatkovic avatar Feb 01 '17 09:02 GordanRatkovic

Tested a project we're working on, and same issue, no events in iOS if iframed. Has this been acknowledged?

ragefuljoe avatar Aug 03 '17 19:08 ragefuljoe

If you make a PR and I'll almost definitely accept it.

stutrek avatar Aug 03 '17 19:08 stutrek

@GordanRatkovic Dunno if you ever figured it out, but for anyone else having this issue, it is not problem with scrollMonitor, but rather how ios safari handles iframes.

The iframe size is not properly sized, and just ends up taking up the entire content size. This causes the animations to all be "in view" at load.

Solution is to wrap all of the content in the iframe src (not in iframe) and give this wrapper the style #wrap { position: fixed; top: 0; right:0; bottom:0; left: 0; overflow-y: scroll; -webkit-overflow-scrolling: touch; }

@stutrek I think this issue can be closed

ragefuljoe avatar Aug 04 '17 13:08 ragefuljoe

Thanks for figuring it out. I'll leave this issue open for anyone else with this problem.

stutrek avatar Aug 04 '17 15:08 stutrek