by qianjun;fix switch drag bugs