UX: remove fast scroll which is leading to bugs

This commit is contained in:
Sam 2018-03-02 12:58:21 +11:00
parent b3883f5c32
commit 185507d072
2 changed files with 0 additions and 17 deletions

View File

@ -47,17 +47,6 @@ export default MountWidget.extend(Docking, {
this.queueRerender();
},
fastDockCheck(){
// we need to dock super fast here, avoid any slow methods
// this is not debounced
const offset = window.pageYOffset;
if (offset && this.fastDockAt && offset > this.fastDockAt) {
this.fastDockAt = null;
$('.timeline-container').addClass('timeline-docked timeline-docked-bottom');
}
},
dockCheck(info) {
const mainOffset = $('#main').offset();
const offsetTop = mainOffset ? mainOffset.top : 0;

View File

@ -12,12 +12,6 @@ export default Ember.Mixin.create({
init() {
this._super();
this.queueDockCheck = () => {
// we want to do a very fast non-debounced check first
if (this.fastDockCheck) {
this.fastDockCheck();
}
Ember.run.debounce(this, this.safeDockCheck, 5);
};
},