comparison mac/dw.m @ 1944:d37f30a7c233

Mac: In an earlier commit I moved code regarding NSScroller arrow positions into YOSEMITE #ifdef due to the arrows not being available since 10.7. This also means that the line move notifications will no longer be generated and not needed, so moving those into YOSEMITE as well.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sat, 22 Jun 2019 20:40:01 +0000
parents 469711814566
children 7af41bfd5190
comparison
equal deleted inserted replaced
1943:469711814566 1944:d37f30a7c233
1689 double result = ([self doubleValue] * max); 1689 double result = ([self doubleValue] * max);
1690 double newpos = result; 1690 double newpos = result;
1691 1691
1692 switch ([sender hitPart]) 1692 switch ([sender hitPart])
1693 { 1693 {
1694 1694 #ifndef BUILDING_FOR_YOSEMITE
1695 case NSScrollerDecrementLine: 1695 case NSScrollerDecrementLine:
1696 if(newpos > 0) 1696 if(newpos > 0)
1697 { 1697 {
1698 newpos--; 1698 newpos--;
1699 } 1699 }
1703 if(newpos < max) 1703 if(newpos < max)
1704 { 1704 {
1705 newpos++; 1705 newpos++;
1706 } 1706 }
1707 break; 1707 break;
1708 1708 #endif
1709 case NSScrollerDecrementPage: 1709 case NSScrollerDecrementPage:
1710 newpos -= visible; 1710 newpos -= visible;
1711 if(newpos < 0) 1711 if(newpos < 0)
1712 { 1712 {
1713 newpos = 0; 1713 newpos = 0;