Stereobit / dragend

dragend JS – a touch ready, full responsive, content swipe script
http://stereobit.github.com/dragend/
MIT License
486 stars 113 forks source link

dragend isn't resizing the pages on resize event #60

Closed hashworks closed 9 years ago

hashworks commented 9 years ago

When I resize my browser dragend won't resize the pages, resulting in two pages beeing visible at once or the page beeing too large for the window.

hashworks commented 9 years ago

The solution is to call _sizePages() on resize:

var dragend = new Dragend(document.getElementById("content"));
window.addEventListener('resize', function() {
    dragend._sizePages();
});
hashworks commented 9 years ago

It is. Sorry.