fixed problem with pointer events in brush panel