kornelski / slip

Slip.js — UI library for manipulating lists via swipe and drag gestures
BSD 2-Clause "Simplified" License
2.44k stars 213 forks source link

Fix calculation of scrollContainer, so it stops at document.body #71

Closed carter-thaxton closed 8 years ago

carter-thaxton commented 8 years ago

This fixes the calculation of scrollContainer, so it doesn't keep going all the way up to the html element, but stops at body. I've run into this in some cases.

scrollContainer.scrollTop is set in the scrolling logic, but the html element ignores changes to .scrollTop.

Possible fix for issue #53.

kornelski commented 8 years ago

OK, let's try that.

What do other libraries, like jQuery, do in such case?