| 191 | } |
| 192 | |
| 193 | double OffsetTime |
| 194 | (AudacityProject &project, |
| 195 | double t, double offset, TimeUnit timeUnit, SnapMode snapMode) |
| 196 | { |
| 197 | auto &viewInfo = ViewInfo::Get( project ); |
| 198 | |
| 199 | if (timeUnit == TIME_UNIT_SECONDS) |
| 200 | return t + offset; // snapping is currently ignored for non-pixel moves |
| 201 | |
| 202 | if (snapMode == SnapMode::SNAP_OFF) |
| 203 | return viewInfo.OffsetTimeByPixels(t, (int)offset); |
| 204 | |
| 205 | return GridMove(project, t, (int)offset); |
| 206 | } |
| 207 | |
| 208 | // Moving a cursor, and collapsed selection. |
| 209 | void MoveWhenAudioInactive |
no test coverage detected