Refactored scrolling functionality to fail gracefully

@pfiller Here's a much better, cleaner version of the scroll fix. This checks for the correct properties and fails gracefully if there is not delta. This is for PR https://github.com/harvesthq/chosen/issues/1184