use velocity in pixels per millisecond (oh, javascript)