diff options
Diffstat (limited to 'Source/CMTextView.m')
-rw-r--r-- | Source/CMTextView.m | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/CMTextView.m b/Source/CMTextView.m index 9b5fb9aa..5afe2fef 100644 --- a/Source/CMTextView.m +++ b/Source/CMTextView.m @@ -2598,6 +2598,21 @@ NSInteger alphabeticSort(id string1, id string2, void *reverse) NSBeep(); } +#pragma mark - +#pragma mark multi-touch trackpad support + +/* + * Trackpad two-finger zooming gesture in/decreases the font size + */ +- (void) magnifyWithEvent:(NSEvent *)anEvent +{ + if([anEvent deltaZ]>5.0) + [self makeTextSizeLarger]; + else if([anEvent deltaZ]<-5.0) + [self makeTextSizeSmaller]; + + [self insertText:@""]; +} @end |