added frame advance based on actual mouseX position.