This works both ways. Unfortunately, in my area the vast majority of the voters are antigun. This is why the politicians are antigun. They don't lead, but follow. I could give you examples of local politicians that used to have "A" ratings from the NRA, but switched 180 degrees when they started getting antigun feedback from their voters.Lawmakers usually under the threat of being voted out will typically lean towards and act accordingly to voter sentiments.
They know they are in office because people vote them in.