Check to see if you're at the end of an input element or textarea. Useful for "drifting" textareas with additional padding at the bottom.
$ component install matthewmueller/end-of
var endOf = require('end-of'),
textarea = document.getElementById('content');
endOf(textarea, function(end) {
if (!end) return;
textarea.scrollTop = textarea.scrollHeight;
})
Initialize the keydown listener on el
.
MIT