ver0.25
1. restrict pan range
2. add css to html