Closed trevorochocki closed 10 years ago
Could you share a page where this is not working?
Sure. I'll make the change public for now since it fails gracefully: http://www.naturalpoint.com/optitrack/products/prime-41/indepth.html#outdoorCapture
Basically, I am trying to play a little video clip when the bottom of the video's parent element comes into view. It works when I set the offset to a percentage but the 'bottom-in-view' shortcut does not.
https://www.drupal.org/node/1916750
I believe the version of jQuery UI you are using redefines jQuery's outerHeight
function, which the bottom-in-view alias uses.
Edit: You can see this in the console using any selector. If you run $('.play-when-in-view').outerHeight()
you'll see it returns the jQuery object, instead of the height like it's supposed to.
Yep, that appears to be the case. I updated to the latest jQuery UI and now my issue is resolved. Thanks again for such a swift response and my compliments to you on creating/maintaining a mighty fine jQuery plugin.
I am attempting to use the 'bottom-in-view' shortcut with Waypoints 2.0.5, but have so far been unsuccessful. Using the following test code...
...results in nothing being output to the console log and zero script errors. If I change 'bottom-in-view' to '66%' or any other value, then everything seems to work fine (i.e. the scroll direction is output to the console log). Any ideas as to why 'bottom-in-view' might not be working?