Changeset 4900
- Timestamp:
- 09/09/07 18:53:31 (10 months ago)
- Files:
-
- Footagehead/trunk/FHTableView.m (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
Footagehead/trunk/FHTableView.m
r4732 r4900 37 37 NSRect rect; 38 38 unichar c; 39 float delta ;39 float delta, proportion; 40 40 BOOL up, handled = NO; 41 41 … … 47 47 if([_imageScrollView hasVerticalScroller]) { 48 48 scroller = [_imageScrollView verticalScroller]; 49 proportion = [scroller knobProportion] / 30.0; 49 50 50 if((up && [scroller floatValue] > 0.01) || (!up && [scroller floatValue] < 0.99)) { 51 if((up && [scroller floatValue] > proportion) || 52 (!up && [scroller floatValue] < 1.0 - proportion)) { 51 53 rect = [_imageScrollView documentVisibleRect]; 52 54 delta = 0.75 * rect.size.height; … … 70 72 if([_imageScrollView hasVerticalScroller]) { 71 73 scroller = [_imageScrollView verticalScroller]; 74 proportion = [scroller knobProportion] / 30.0; 72 75 73 if((c == NSPageUpFunctionKey && [scroller floatValue] > 0.01) ||74 (c == NSPageDownFunctionKey && [scroller floatValue] < 0.99)) {76 if((c == NSPageUpFunctionKey && [scroller floatValue] > proportion) || 77 (c == NSPageDownFunctionKey && [scroller floatValue] < 1.0 - proportion)) { 75 78 rect = [_imageScrollView documentVisibleRect]; 76 79 delta = rect.size.height; … … 94 97 if([_imageScrollView hasVerticalScroller]) { 95 98 scroller = [_imageScrollView verticalScroller]; 99 proportion = [scroller knobProportion] / 30.0; 96 100 97 if((c == NSHomeFunctionKey && [scroller floatValue] > 0.01) ||98 (c == NSEndFunctionKey && [scroller floatValue] < 0.99)) {101 if((c == NSHomeFunctionKey && [scroller floatValue] > proportion) || 102 (c == NSEndFunctionKey && [scroller floatValue] < 1.0 - proportion)) { 99 103 rect = [_imageView frame]; 100 104 rect.origin.y = (c == NSHomeFunctionKey) ? rect.size.height : 0; … … 117 121 if([_imageScrollView hasVerticalScroller]) { 118 122 scroller = [_imageScrollView verticalScroller]; 123 proportion = [scroller knobProportion] / 30.0; 119 124 120 if((c == NSUpArrowFunctionKey && [scroller floatValue] > 0.01) ||121 (c == NSDownArrowFunctionKey && [scroller floatValue] < 0.99)) {125 if((c == NSUpArrowFunctionKey && [scroller floatValue] > proportion) || 126 (c == NSDownArrowFunctionKey && [scroller floatValue] < 1.0 - proportion)) { 122 127 rect = [_imageScrollView documentVisibleRect]; 123 128 delta = 0.75 * rect.size.height; … … 141 146 if([_imageScrollView hasHorizontalScroller]) { 142 147 scroller = [_imageScrollView horizontalScroller]; 148 proportion = [scroller knobProportion] / 30.0; 143 149 144 if((c == NSRightArrowFunctionKey && [scroller floatValue] < 0.99) ||145 (c == NSLeftArrowFunctionKey && [scroller floatValue] > 0.01)) {150 if((c == NSRightArrowFunctionKey && [scroller floatValue] < proportion) || 151 (c == NSLeftArrowFunctionKey && [scroller floatValue] > 1.0 - proportion)) { 146 152 rect = [_imageScrollView documentVisibleRect]; 147 153 delta = 0.75 * rect.size.height;
