Mercurial > hg > svgui
diff layer/TimeRulerLayer.cpp @ 1431:af824022bffd single-point
Begin fixing the various snap operations. Also remove SnapNearest, which is never used and seems to consume more lines of code than the rest!
author | Chris Cannam |
---|---|
date | Wed, 20 Mar 2019 14:59:34 +0000 |
parents | c8a6fd3f9dff |
children | f2525e6cbdf1 |
line wrap: on
line diff
--- a/layer/TimeRulerLayer.cpp Wed Mar 20 11:18:45 2019 +0000 +++ b/layer/TimeRulerLayer.cpp Wed Mar 20 14:59:34 2019 +0000 @@ -87,16 +87,6 @@ case SnapRight: frame = right; break; - - case SnapNearest: - { - if (llabs(frame - left) > llabs(right - frame)) { - frame = right; - } else { - frame = left; - } - break; - } case SnapNeighbouring: {