I feel that the issue is complex n not as black n white as it appears. I feel that the media n certain politicians have scapegoated certain minority groups such as refugees, the Polish n so forth---aa the "immigration problem" in order to win their argument.
Far easy for people to blame "those foreigners coming here taking our jobs, homes etc" than taking responsibility for things gone wrong in this country(ies). Far easier tham "thinking n working through problems n solutions" to blame others.
Also when people as in such a state of uncertainty or panic they are likely to look for any solution available. Look back to 1933 n how the Germans were concerned for the economy after the 1929 Wall Street Crash - how Hitler used this to get elected as Chancellor n then gradually, through radio, films at the cinema---convinced people that Jews were responsible for Germany's problems.
Were the Germans a bunch of racists thugs - or simply a large group of scared n vulnerable people, yearning to be guided, yearning for a solution to the unemployment? Hitler offered one, scapegoating Jews n once they were taken away from their jobs, businesses etc---n people saw the unemployment falling---they became comvinced their country was improving n that Hitler was a great Chancellor.
Remember---a lot of what really went on (for instance, taken Jews to Cencentration Camps; gasing n torturing them) was hidden from the public. The public was being mass-groomed via media-propaganda. Their thoughts were being manipulated as an extremely clever man fed off on their fear, on their uncertainty, on their vulnerability, on their lack of knowledge of what the government was really getting up to.
Back to now----I'm not saying our government is like Hitler, but, in my opinion, I feel that they---along with the media---may be using similar tactics. To understand how quickly people can be manipulated into favouriting or discriminating a particular group there are some good studies:
Jane Elliot - Brown eyes Blue eyes
Irving Janis concept of GroupThink
Henri Tajfel - Minimal Group Experiments
J Watson "Little Albert"
So---I will end this post with one question---Are the people who voted "leave," racist?---or are they a group of frightened, vulnerable people, who have been groomed into thinking n feeling a specific way that empowers the politicians on a campaign for a specific outcome?
Disclaimer: I am, no way, defending racist behaviour n feel that it is simply disgraceful to behave in such a way, however, as someone who has an interest in Psychology, just trying to answer the question offered.
Evey