# `GSFrameView scrollPoint:toReferencePoint:`

*Instance Method*

Scrolls the position of `point` to the position of `referencePoint` in the view.

## Declaration

```swift
func scroll(_ point: NSPoint, toReferencePoint referencePoint: NSPoint)
```

```objc
- (void) scrollPoint:(NSPoint) point toReferencePoint:(NSPoint) referencePoint;
```

```python
scrollPoint_toReferencePoint_(point: NSPoint, referencePoint: NSPoint)
```

## Parameters

- `point` — The point to scroll to the reference point. The coordinates are in view points.
- `referencePoint` — The point to scroll to. The coordinates are in view points from the origin (top left) of the visible rect of the clip view excluding inserts. The center reference point, for example, would be the mid-x and mid-y of the user visible frame.

