// // PSCustomScrollView.m // Perforce // // Created by Adam Czubernat on 02/01/2014. // Copyright (c) 2014 Perforce Software, Inc. All rights reserved. // #import "PSCustomScrollView.h" @implementation PSCustomScrollView @synthesize scrollDisabled, scrollHorizontalOnly, scrollVerticalOnly; - (void)scrollWheel:(NSEvent *)theEvent { if (scrollDisabled) [[self nextResponder] scrollWheel:theEvent]; else { if (scrollVerticalOnly ? theEvent.deltaX && !theEvent.deltaY : scrollHorizontalOnly ? !theEvent.deltaX && theEvent.deltaY : NO) [[self nextResponder] scrollWheel:theEvent]; [super scrollWheel:theEvent]; } } @end
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#2 | 18548 | Robert Cowham | Merge from Main. | ||
#1 | 16507 | perforce_software | Move to main branch. | ||
//guest/perforce_software/piper/mac/R2.0/Perforce/Classes/Views/PSCustomScrollView.m | |||||
#1 | 12962 | alan_petersen |
Populate -o //guest/perforce_software/piper/mac/main/... //guest/perforce_software/piper/mac/R2.0/.... |
||
//guest/perforce_software/piper/mac/main/Perforce/Classes/Views/PSCustomScrollView.m | |||||
#1 | 11252 | alan_petersen | Rename/move file(s) | ||
//guest/perforce_software/piper/mac/Perforce/Classes/Views/PSCustomScrollView.m | |||||
#1 | 10744 | alan_petersen | Rename/move file(s) | ||
//guest/perforce_software/piper/Perforce/Classes/Views/PSCustomScrollView.m | |||||
#1 | 8919 | Matt Attaway | Initial add of Piper, a lightweight Perforce client for artists and designers. |