UX: remove fast scroll which is leading to bugs
This commit is contained in:
parent
b3883f5c32
commit
185507d072
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
};
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue