fix redraw delay to never exceed FRAME_BUDGET
This commit is contained in:
parent
153d2384c8
commit
ced7d0c0d4
1 changed files with 1 additions and 1 deletions
|
|
@ -474,7 +474,7 @@ Mithril = m = new function app(window, undefined) {
|
|||
}
|
||||
else {
|
||||
redraw()
|
||||
lastRedrawId = defer(function() {lastRedrawId = null}, delay)
|
||||
lastRedrawId = defer(function() {lastRedrawId = null}, FRAME_BUDGET)
|
||||
}
|
||||
}
|
||||
m.redraw.strategy = m.prop()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue