fix view drag bug