only process the render queue after we stop moving

This commit is contained in:
Brian Gough 2016-07-05 12:11:47 +01:00
parent eaca616dd3
commit a4cd5c90c3

View file

@ -81,6 +81,8 @@ define [
@resetState() @resetState()
triggerRenderQueue: (interval = @JOB_QUEUE_INTERVAL) -> triggerRenderQueue: (interval = @JOB_QUEUE_INTERVAL) ->
if @queueTimer?
clearTimeout @queueTimer
@queueTimer = setTimeout () => @queueTimer = setTimeout () =>
@queueTimer = null @queueTimer = null
@processRenderQueue() @processRenderQueue()