Added pointer history to smooth painted lines.