---
title: "translation(in:)"
framework: browserenginekit
role: symbol
role_heading: Instance Method
path: "browserenginekit/bescrollviewscrollupdate/translation(in:)"
---

# translation(in:)

Returns the scroll displacement in the coordinate system of the view that the update represents.

## Declaration

```swift
func translation(in view: UIView?) -> CGPoint
```

## Parameters

- `view`: The view that contains the coordinate system to express the displacement. Pass nil to get the displacement in the window’s coordinate system.

## Return Value

Return Value The scroll displacement of the update in the specified view’s coordinate system.

## Discussion

Discussion A nonzero x or y value in the returned point indicates a displacement large enough to produce a visible change along that axis.

## See Also

### Transforming coordinates

- [location(in:)](browserenginekit/bescrollviewscrollupdate/location(in:).md)
