Mechanism of electron delocalisation from the other end of alicyclic chain

When one adds $\ce{Br2}$ and $\ce{CH2Cl2}$ to 5-Methylhex-5-enol, this mechanism follows;
[![enter image description here](https://i.stack.imgur.com/g6Okd.png)](https://i.stack.imgur.com/g6Okd.png)


Also,in adding $\ce{Br2}$ to 2,2-Dimethylhexa-3,4-dienol, this follows;
[![](https://i.stack.imgur.com/lAyak.png)](https://i.stack.imgur.com/lAyak.png)


What is the mechanism here, in which the electrons from a hydroxyl on the other side of the C-chain is delocalised to the other side?


