@@ -134,6 +134,18 @@ double FullTimeline::getIntervalDurationInSeconds()
134134 return ((stopMs - startMs) / 1000 .0f );
135135}
136136
137+ void FullTimeline::mouseMove (const MouseEvent& event)
138+ {
139+ if (event.x >= intervalStartPosition && event.x <= intervalStartPosition + intervalWidth)
140+ {
141+ setMouseCursor (MouseCursor::DraggingHandCursor);
142+ }
143+ else
144+ {
145+ setMouseCursor (MouseCursor::NormalCursor);
146+ }
147+ }
148+
137149void FullTimeline::mouseDown (const MouseEvent& event)
138150{
139151 if (event.x >= intervalStartPosition && event.x <= intervalStartPosition + intervalWidth)
@@ -221,20 +233,31 @@ void ZoomTimeline::paint (Graphics& g)
221233 /* Draw the current playback position */
222234 g.setColour (findColour (ThemeColours::defaultText));
223235 float timelinePos = (float ) (fileReader->getPlayheadPosition () - startSampleNumber) / (stopSampleNumber - startSampleNumber) * getWidth ();
224- if (0 < timelinePos < sliderPosition + sliderWidth )
236+ if (0 < timelinePos && timelinePos < getWidth () )
225237 {
226238 g.setOpacity (1 .0f );
227239 g.fillRoundedRectangle (timelinePos, 0 , 1 , this ->getHeight (), 0.2 );
228240 }
229241
230242 /* Draw the scrubber interval */
231- g.setColour (findColour (ThemeColours::componentParentBackground ));
243+ g.setColour (findColour (ThemeColours::outline ));
232244 g.fillRoundedRectangle (sliderPosition, 0 , sliderWidth, this ->getHeight (), 2 );
233245 g.setColour (findColour (ThemeColours::componentBackground));
234- g.setOpacity (0 .8f );
235246 g.fillRoundedRectangle (sliderPosition + 1 , 1 , sliderWidth - 2 , this ->getHeight () - 2 , 2 );
236247}
237248
249+ void ZoomTimeline::mouseMove (const MouseEvent& event)
250+ {
251+ if (event.x > sliderPosition && event.x < sliderPosition + sliderWidth)
252+ {
253+ setMouseCursor (MouseCursor::DraggingHandCursor);
254+ }
255+ else
256+ {
257+ setMouseCursor (MouseCursor::NormalCursor);
258+ }
259+ }
260+
238261void ZoomTimeline::mouseDown (const MouseEvent& event)
239262{
240263 if (event.x > sliderPosition && event.x < sliderPosition + sliderWidth)
0 commit comments