Airtower / core-plot

Automatically exported from code.google.com/p/core-plot
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Include annotations in pointinDeviceDown: handling chain + cursor changes #591

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
CPTGraph checks various elements in -(BOOL)pointingDeviceDownEvent:atPoint: 
whether they want to handle the mouse event bevor it forwards the event to the 
plotspace where the drag handling happens. However, it does not check its 
annotations. In fact CPTAnnotationHostLayer should always ask the content layer 
of all annotations for the pointingDeviceDown event (they all implement 
CPTResponder via CPTLayer). The plot area frame also is a CPTBorderedLayer, 
hence it should query it's annotations. Same for the plotspace. This can be 
optimized by only querying layers whose bounds contain the mouse position.

CPTPlotspace changes the mouse cursor depending on whether user interaction is 
allowed and dragging is in progress. However it should respect any overlapping 
part (like legends, annotations) and not show a hand cursor if the mouse is 
over them.

Original issue reported on code.google.com by mike.lischke on 6 Oct 2013 at 9:31

GoogleCodeExporter commented 8 years ago
I don't see a way to exclude parts of the cursor rect. NSView doesn't include 
an API to do this, nor would it be easy to determine what parts should be 
excluded. If you still need this feature, please open a separate issue. It 
might be possible to build multiple cursor rects that exclude non-scrollable 
parts like the legend.

Original comment by eskr...@mac.com on 7 Dec 2013 at 9:30

GoogleCodeExporter commented 8 years ago
This issue was closed by revision 3164d39de533.

Original comment by eskr...@mac.com on 7 Dec 2013 at 9:30