> For AI agents: the complete documentation index is available at /next/zh/llms.txt, the full documentation bundle is available at /next/zh/llms-full.txt.

# onFling

APISummary
手指松开后，惯性滚动开始时调用。

## 语法

### Android

```java
public void onFling(ScrollInfo info);
```

#### 参数

- `info`: 包含滚动参数，包括滚动视图的实例，以及前端指定的 id 和 name。

## 兼容性

**Compatibility Table**

**Query:** `lynx-native-api.lynx-view-client.on-fling`

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-native-api/lynx-view-client/on-fling.json)

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| on-fling | Yes (1.0) | No | No | No | No | No |

**`on-fling`**

Called when inertial scrolling starts after releasing the finger.

**Specifications:**

