HumanBonsai HumanBonsai - 1 year ago 107
jQuery Question

Expanded Preview Closes on Mobile Scroll

I'm using this tutorial to create an expanding preview within a grid of thumbnails. On mobile the expanded div closes when you scroll up or down, and I can't seem to find what's causing it.

New to javascript, so maybe I'm not looking for the right things. Any help appreciated!

Answer Source

Open js/grid.js file and delete the following code:

setup: function() {
    $( this ).on( "resize", $special.handler );
teardown: function() {
    $( this ).off( "resize", $special.handler );
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download