Add acceleration detectionand threshold on web client side.