mirror of
https://github.com/discourse/discourse.git
synced 2025-02-23 04:55:00 +00:00
FIX: disable cloaked view while running ios positioning hack
This commit is contained in:
parent
fc2d61136d
commit
a890d45cb6
@ -35,6 +35,8 @@ function positioningWorkaround($fixedElement) {
|
||||
if (evt) {
|
||||
evt.target.removeEventListener('blur', blurred);
|
||||
}
|
||||
|
||||
$('body').removeData('disable-cloaked-view');
|
||||
};
|
||||
|
||||
var blurred = _.debounce(blurredNow, 250);
|
||||
@ -58,6 +60,8 @@ function positioningWorkaround($fixedElement) {
|
||||
originalScrollTop = $(window).scrollTop();
|
||||
|
||||
// take care of body
|
||||
|
||||
$('body').data('disable-cloaked-view',true);
|
||||
$('#main-outlet').hide();
|
||||
$('header').hide();
|
||||
|
||||
|
@ -237,6 +237,9 @@ const CloakedCollectionView = Ember.CollectionView.extend({
|
||||
},
|
||||
|
||||
scrollTriggered() {
|
||||
if ($('body').data('disable-cloaked-view')) {
|
||||
return;
|
||||
}
|
||||
Em.run.scheduleOnce('afterRender', this, 'scrolled');
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user