added boolean panOnDrag option