MCPcopy Create free account
hub / github.com/audacity/audacity / Drag

Method Drag

src/AdornedRulerPanel.cpp:1795–1809  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1793}
1794
1795auto AdornedRulerPanel::QPHandle::Drag(
1796 const TrackPanelMouseEvent &event, AudacityProject *pProject) -> Result
1797{
1798 auto result = CommonRulerHandle::Drag(event, pProject);
1799 if (!( result & RefreshCode::Cancelled )) {
1800 if (mClicked == Button::Left) {
1801 if ( mParent ) {
1802 mX = event.event.m_x;
1803 mParent->UpdateQuickPlayPos( mX );
1804 mParent->HandleQPDrag( event.event, mX );
1805 }
1806 }
1807 }
1808 return result;
1809}
1810
1811void AdornedRulerPanel::HandleQPDrag(wxMouseEvent &/*event*/, wxCoord mousePosX)
1812{

Callers

nothing calls this directly

Calls 2

UpdateQuickPlayPosMethod · 0.80
HandleQPDragMethod · 0.80

Tested by

no test coverage detected