mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-21 01:40:41 +00:00
Fix for adding draggedViewLocation and draggedImageLocatio to CPDraggingInfo.
[#192 state:resolved] Reviewed by me.
This commit is contained in:
@@ -157,6 +157,16 @@ var CPDragServerUpdateDragging = function(anEvent)
|
||||
return [CPDragServerView image];
|
||||
}
|
||||
|
||||
- (CGPoint)draggedImageLocation
|
||||
{
|
||||
return [self draggedViewLocation];
|
||||
}
|
||||
|
||||
- (CGPoint)draggedViewLocation
|
||||
{
|
||||
return [[CPDragServerDestination window] convertBridgeToBase:[CPDragServerView frame].origin];
|
||||
}
|
||||
|
||||
- (CPView)draggedView
|
||||
{
|
||||
return CPDragServerView;
|
||||
|
||||
Reference in New Issue
Block a user