mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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) {
|
if (evt) {
|
||||||
evt.target.removeEventListener('blur', blurred);
|
evt.target.removeEventListener('blur', blurred);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$('body').removeData('disable-cloaked-view');
|
||||||
};
|
};
|
||||||
|
|
||||||
var blurred = _.debounce(blurredNow, 250);
|
var blurred = _.debounce(blurredNow, 250);
|
||||||
@ -58,6 +60,8 @@ function positioningWorkaround($fixedElement) {
|
|||||||
originalScrollTop = $(window).scrollTop();
|
originalScrollTop = $(window).scrollTop();
|
||||||
|
|
||||||
// take care of body
|
// take care of body
|
||||||
|
|
||||||
|
$('body').data('disable-cloaked-view',true);
|
||||||
$('#main-outlet').hide();
|
$('#main-outlet').hide();
|
||||||
$('header').hide();
|
$('header').hide();
|
||||||
|
|
||||||
|
@ -237,6 +237,9 @@ const CloakedCollectionView = Ember.CollectionView.extend({
|
|||||||
},
|
},
|
||||||
|
|
||||||
scrollTriggered() {
|
scrollTriggered() {
|
||||||
|
if ($('body').data('disable-cloaked-view')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
Em.run.scheduleOnce('afterRender', this, 'scrolled');
|
Em.run.scheduleOnce('afterRender', this, 'scrolled');
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user