ops broke the tests
This commit is contained in:
parent
5d56955720
commit
5a0de885db
1 changed files with 1 additions and 1 deletions
|
|
@ -466,7 +466,7 @@ Mithril = m = new function app(window, undefined) {
|
|||
if (lastRedrawId && force !== true) {
|
||||
//when setTimeout: only reschedule redraw if time between now and previous redraw is bigger than a frame, otherwise keep currently scheduled timeout
|
||||
//when rAF: always reschedule redraw
|
||||
if (defer == window.setTimeout && new Date - lastRedrawCallTime > FRAME_BUDGET) {
|
||||
if (new Date - lastRedrawCallTime > FRAME_BUDGET || defer == window.requestAnimationFrame) {
|
||||
if (lastRedrawId > 0) cancel(lastRedrawId)
|
||||
lastRedrawId = defer(redraw, FRAME_BUDGET)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue