Mouse lagging in drawing area

I have this problem: when the mouse enters the drawing area it lags and the program became unusable. The problem is present only in the drawing area, if I hover the other parts of the program's window the mouse goes smooth.