FIX: disable cloaked view while running ios positioning hack

This commit is contained in:
Sam 2015-09-25 16:42:57 +10:00
parent fc2d61136d
commit a890d45cb6
2 changed files with 7 additions and 0 deletions

View File

@ -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();

View File

@ -237,6 +237,9 @@ const CloakedCollectionView = Ember.CollectionView.extend({
},
scrollTriggered() {
if ($('body').data('disable-cloaked-view')) {
return;
}
Em.run.scheduleOnce('afterRender', this, 'scrolled');
},