Bugs:
- When scrolled to the bottom, after infinite loads more content, the scrollbar should jump to it's new spot. Instead, it will stay where the cursor/finger is, causing another inifinite load.
app.directive 'mouseWheelScroll', ($timeout) -> | |
return { | |
restrict: 'A' | |
# require: '^$ionicScroll' | |
link: ($scope, $element, $attrs) -> | |
scrollCtrl = $element.controller('$ionicScroll') | |
console.log scrollCtrl | |
unless scrollCtrl | |
return console.error('mouseWheelScroll must be attached to a $ionicScroll controller.') |
/** | |
** ______ _ _____ _ _ _ | |
** | _ \ | | / ___| | | (_) | | | |
** | | | |__ _ _ __| | __ \ `--. ___ | | __ _ _ __ _ _______ __| | | |
** | | | / _` | '__| |/ / `--. \/ _ \| |/ _` | '__| |_ / _ \/ _` | | |
** | |/ / (_| | | | < /\__/ / (_) | | (_| | | | |/ / __/ (_| | | |
** |___/ \__,_|_| |_|\_\ \____/ \___/|_|\__,_|_| |_/___\___|\__,_| | |
** | |
** Quassel Theme | |
** |
/** | |
** ____ _ ___ ___ _ _ | |
** | _ \ | | | \/ | | | (_) | |
** | | \ |__ _ _ __| | __ | . . | ___ _ __ ___ | | __ __ _ _ | |
** | | | | _` | '__| |/ / | |\/| |/ _ \| '_ \ / _ \| |/ // _` | | | |
** | |_/ /(_| | | | < | | | | (_) | | | | (_) | <| (_| | | | |
** |____/\__,_|_| |_|\_\ \_| |_/\___/|_| |_|\___/|_|\_\\__,_|_| | |
** | |
** Quassel Theme | |
** |