FIXED: Before this PR, starting a column drag within a scrolled down table would scroll the table content to the bottom (#2753)

Before this commit, in the method [view convertPoint:aPoint toView:aView] : aPoint was not in the coordinate system of view.
This commit is contained in:
Didier Korthoudt authored and cacaodev committed 2018-08-21 19:26:42 +02:00
1 parent 586c419c46
commit ff6d17990f
1 file changed
+1 -1
+1 -1
View File
@@ -550,7 +550,7 @@ var CPTableHeaderViewResizeZone = 3.0,
- (void)_autoscroll:(CPEvent)theEvent localLocation:(CGPoint)theLocation
{
// Constrain the y coordinate so we don't autoscroll vertically
var constrainedLocation = CGPointMake(theLocation.x, CGRectGetMinY([_tableView visibleRect])),
var constrainedLocation = CGPointMake(theLocation.x, CGRectGetMaxY([self frame])),
constrainedEvent = [CPEvent mouseEventWithType:CPLeftMouseDragged
location:[self convertPoint:constrainedLocation toView:nil]
modifierFlags:[theEvent modifierFlags]