FIX: Menu panels scrolled weird in iOS
This commit is contained in:
parent
5984b62347
commit
f11bdd13fc
|
@ -79,7 +79,11 @@ export default Ember.Component.extend({
|
|||
});
|
||||
this.performLayout();
|
||||
this._watchSizeChanges();
|
||||
|
||||
// iOS does not handle scroll events well
|
||||
if (!this.capabilities.touch) {
|
||||
$(window).on('scroll.discourse-menu-panel', () => this.performLayout());
|
||||
}
|
||||
} else {
|
||||
Ember.run.scheduleOnce('afterRender', () => this.sendAction('onHidden'));
|
||||
$('html').off('click.close-menu-panel');
|
||||
|
|
Loading…
Reference in New Issue