1. optimize color painting performance
2. fix the issue that painting does not show if moving fast after bucket
fill
Signed-off-by: yifan.wu <yifan.wu@bambulab.com>
Change-Id: I72204aac81b14c87edb602677abeef13ee0fad8f
(cherry picked from commit 02560f31c413cb561800fca242f8ef30504d0384)