Switch from sTO to rAF

master
Surma 2016-01-21 11:56:06 +00:00
parent 325c2115b9
commit b036719335
1 changed files with 2 additions and 2 deletions

View File

@ -305,9 +305,9 @@
if (e.persisted) { // when page is loaded from back/forward cache
// trigger repaint to let layout scroll in safari
this.element_.style.overflowY = 'hidden';
setTimeout(function() {
requestAnimationFrame(function() {
this.element_.style.overflowY = '';
}.bind(this), 0);
}.bind(this));
}
}.bind(this), false);