Change onPan callback signature