As the leg moves, the kneecap moves, too. It slides up and down its track on the thighbone. But if the kneecap slides "off track"—even a little—pain and damage can result.