/zoeplat

To get this branch, use:
bzr branch http://9ix.org/bzr/zoeplat

« back to all changes in this revision

Viewing changes to zoetrope/core/view.lua

  • Committer: Josh C
  • Date: 2013-03-05 16:38:21 UTC
  • Revision ID: josh@9ix.org-20130305163821-kw70drafjsh7329k
fix jitter caused by focus shift happening in the wrong order.  Looks 
like this is fixed in: 
https://bitbucket.org/klembot/zoetrope/commits/5e67ba491768caab0da8b9afc9954c072851e143

Show diffs side-by-side

added added

removed removed

Lines of Context:
373
373
                local screenWidth = the.app.width
374
374
                local screenHeight = the.app.height
375
375
 
 
376
                -- let sprites update their physics before adjusting focus
 
377
                Group.update(self, elapsed)
 
378
 
376
379
                -- follow the focused sprite
377
380
                
378
381
                if self.focus and self.focus.width < screenWidth
401
404
                        self.translate.y = screenHeight - self.maxVisible.y
402
405
                end
403
406
 
404
 
                Group.update(self, elapsed)
 
407
                --Group.update(self, elapsed)
405
408
        end,
406
409
 
407
410
        draw = function (self, x, y)