| 1711 | } |
| 1712 | |
| 1713 | bool AdornedRulerPanel::IsWithinMarker(int mousePosX, double markerTime) |
| 1714 | { |
| 1715 | if (markerTime < 0) |
| 1716 | return false; |
| 1717 | |
| 1718 | int pixelPos = Time2Pos(markerTime); |
| 1719 | int boundLeft = pixelPos - SELECT_TOLERANCE_PIXEL; |
| 1720 | int boundRight = pixelPos + SELECT_TOLERANCE_PIXEL; |
| 1721 | |
| 1722 | return mousePosX >= boundLeft && mousePosX < boundRight; |
| 1723 | } |
| 1724 | |
| 1725 | #ifdef QUICK_PLAY_HANDLE |
| 1726 | auto AdornedRulerPanel::QPHandle::Click( |