public void OnDrag(NoteAreaDragEvent dragEvent) { int newViewportX = viewportXBeginDrag - dragEvent.MillisDistance; noteArea.SetViewportX(newViewportX); }