Note that Crafty.viewport.x=100; but the value of rect._x is -100.