Eglantine if you are able you could try lifting your leg so your knee is across your other (upper) leg. Sorry, it’s diffi to explain, but it is a method of fending off unwelcome attention. We have spaniels who, despite attending lots of training, still tend to jump, mainly at visitors to the house. When put, however, they are very good at coming back to the whistle, and we tend to call them back to us whenever we see other people, especially if they have no dogs, or have children with them. Sadly, my dogs would be an absolute nightmare of pent up energy if not allowed to run free, just running in the garden is not enough for them as one other poster suggests.