Some maybe be not all, it was a very close result. And if you take the oldest bigots out of the equation, I think there is not enough pressure on poilitical parties for there to have even been a vote in the first place. If a small percentage of old bigots were killed off in the spring, we'd still be in the EU, irrespective of how some of the 70's folk changed.
Many people were put in a position they didn't want to be in & weren't sure which way to go. It would be interesting to see how the same referendum would go today.
Both votes depend on fear of immigration & terrorism.
But ironically, I think the bloke who shoots Trump is likely to be some stupid **** who actually believed he would solve his problems & voted for him on he strength of it.