Revision: 29135 http://sourceforge.net/p/bibdesk/svn/29135 Author: hofman Date: 2025-04-18 16:29:46 +0000 (Fri, 18 Apr 2025) Log Message: ----------- check for mouse down only once
Modified Paths: -------------- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m =================================================================== --- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m 2025-04-18 16:27:25 UTC (rev 29134) +++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m 2025-04-18 16:29:46 UTC (rev 29135) @@ -3420,8 +3420,10 @@ NSUInteger i = [self _indexAtPoint:p]; // _fvFlags.isMouseDown tells us if the mouseDown: event originated in this view; if not, just ignore it + if (_fvFlags.isMouseDown == NO) + return; - if (nil == _rubberBandView && NSNotFound != i && _fvFlags.isMouseDown) { + if (nil == _rubberBandView && NSNotFound != i) { // No previous rubber band selection, so check to see if we're dragging an icon at this point. // The condition is also false when we're getting a repeated call to mouseDragged: for rubber band drawing. @@ -3453,7 +3455,7 @@ } } - else if (_fvFlags.isMouseDown) { + else { // no icons to drag, so we must draw the rubber band rectangle NSRect rubberBandRect = NSIntersectionRect(_rectWithCorners(_lastMouseDownLocInView, p), [self bounds]); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Bibdesk-commit mailing list Bibdesk-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bibdesk-commit