I'm using the standard way of detecting the scroll position to enable a button when the user scrolls to bottom. it works fine on 100% zoom until you zoom out.
http://jsfiddle.net/ruslans/94qmk4t6/ (try zooming out to 90%/75%)
function ViewModel() {
this.scrolledToBottom = ko.observable(false);
this.onScroll = function (data, event) {
var el = event.target,
$el = $(el),
scrollPosition = $el.scrollTop() + $el.innerHeight();
if ($el.scrollTop() === 0) return;
this.scrolledToBottom(scrollPosition >= (el.scrollHeight));
};
}
is there a neat workaround i could use?