Better inset bounds to improve autoscrolling while dragging in a scrollview.

This commit is contained in:
Mike Fellows authored and Randall Luecke committed 2011-04-08 09:26:04 -04:00
1 parent 370960418f
commit 4a57f6a1c4
1 file changed
+1 -1
+1 -1
View File
@@ -261,7 +261,7 @@ var CPDraggingSource_draggedImage_movedTo_ = 1 << 0,
{
var contentView = [scrollView contentView],
bounds = [contentView bounds],
insetBounds = CGRectInset(bounds, 10, 10),
insetBounds = CGRectInset(bounds, 30, 30),
eventLocation = [contentView convertPoint:_draggingLocation fromView:nil],
deltaX = 0,
deltaY = 0;