refactor(clickBlock): add click-block div to body

Instead of using pointer-events: none to disable unwanted clicks which
can cause flickering, we’re now using a click-block div that covers the
view during transitions. Similar concept to pointer-events: none
applied to the body tag, but in tests its showing to be more effective
to not cause any flickers.
This commit is contained in:
Adam Bradley
2014-08-27 12:56:12 -05:00
parent 2c3f1c9f02
commit e9f0fcf556
5 changed files with 63 additions and 25 deletions

View File

@@ -323,7 +323,7 @@ describe('$ionicScroll Controller', function() {
}
};
module('ionic', function($provide) {
$provide.value('$document', [ { getElementById: function(){ return ele; } } ]);
$provide.value('$document', [ { getElementById: function(){ return ele; }, createElement: function(tagName){ return document.createElement(tagName); } } ]);
});
inject(function($controller, $rootScope, $location, $timeout) {
var scrollCtrl = $controller('$ionicScroll', {