refactor position calculation
fix trigger event bug
click detect prototype
fix bug