Skip to content

Commit

Permalink
Merge pull request #7433 from hansemannn/TIMOB-17247
Browse files Browse the repository at this point in the history
[TIMOB-17247] iOS: Add contentSize to scrollView event
  • Loading branch information
AngelkPetkov committed Nov 12, 2015
2 parents 8f0749b + fd17262 commit 7e00edf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apidoc/Titanium/UI/ScrollView.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@ events:
- name: scroll
summary: Fired when the scrollable region is scrolled.
properties:

- name: contentSize
summary: |
The current content size of the scroll view defined by its `width` and `height` properties.
type: Dictionary
platforms: [iphone, ipad]

- name: decelerating
summary: Indicates whether the scroll is decelerating.
type: Boolean
Expand Down
1 change: 1 addition & 0 deletions iphone/Classes/TiUIScrollViewProxy.m
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ -(void)scrollViewDidScroll:(UIScrollView *)scrollView
NUMBOOL([scrollView isZooming]),@"zooming",
NUMBOOL([scrollView isDecelerating]),@"decelerating",
NUMBOOL([scrollView isDragging]),@"dragging",
[TiUtils sizeToDictionary:scrollView.contentSize], @"contentSize",
nil]];
}
}
Expand Down

0 comments on commit 7e00edf

Please sign in to comment.