bug fixed when frame equals pos, return wrong value.
Merge branch 'dev'
some modify.
Merge branch 'dev'