Audacity Bug Summary
••• Introduction •••
••• Keywords •••
    Audacity 3.0.3 development began 19th April 2021

Audacity Bugzilla



Bug 1531 - Timeline Quick-Play selection dragging creates subliminal selection if no selection existed before drag
Timeline Quick-Play selection dragging creates subliminal selection if no sel...
Status: RESOLVED FIXED
Product: Audacity
Classification: Unclassified
Component: Audio IO
2.1.3
Per OS All
: P4 Repeatable
Assigned To: Default Assignee for New Bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-10-19 20:57 UTC by Gale Andrews
Modified: 2018-08-20 11:45 UTC (History)
6 users (show)

See Also:
Steps To Reproduce:
1 Enable dragging selection in Quick-Play context menu. 2 Generate Tone 30 seconds. 3 Click and release mouse in waveform at about 15 seconds. Optionally, press SPACE to play. 4 Click and drag in the Timeline to right of 15 seconds, either from left to right or right to left. A subliminal selection appears in the Timeline from the editing cursor to the dragged edge, before this selection is replaced by the dragged selection. 5 Repeat step 3. 6 Drag in the Timeline to left of the playback position, in either direction. No subliminal flash appears. 7 Click in Scrub Bar at about 15 seconds and move the mouse in either direction to start scrub. Optionally you can then drag in Scrub Bar to temporarily seek. 8 Drag in the Timeline to left or right of the playback position, in either direction. A subliminal selection appears in the Timeline from time zero to the dragged edge, before this is replaced by the dragged selection.
Release Note:
First Git SHA:
Group: ---
Workaround:
Closed: 2018-08-20 00:00:00
petersampsonaudacity: Test‑OK‑Win+
petersampsonaudacity: Test‑OK‑Mac+
stevethefiddle: Test‑OK‑Lin+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gale Andrews 2016-10-19 20:57:39 UTC
Same with Loop Play. 

Same if you start playback by click in Timeline.  

Seems to have been like this since dragging Timeline selections was introduced. Moving an already existing selection does not look odd, but creation of a subliminal selection where none existed is arguably a little disturbing.
Comment 1 Steve Daulton 2016-10-20 04:00:49 UTC
Doing these steps:

1 Enable dragging selection in Quick-Play context menu. 
2 Generate Tone 30 seconds.
3 Click in waveform at about 15 seconds.
4 Drag in the Timeline to right of 15 seconds...

Is that "click and drag"?
Have I held the mouse button down from step 3, or is step 4 a new click and drag?
Does it matter where I click?


4 (continued) A subliminal selection appears in the Timeline from the editing cursor to the dragged edge,

What do you mean "subliminal selection"?
If in step 3 I left click and release, then in step 4 I do "click and drag", I see a selection and play region appear where I did "click and drag".
Comment 2 Gale Andrews 2016-10-21 18:10:05 UTC
(In reply to Steve Daulton from comment #1)
> 1 Enable dragging selection in Quick-Play context menu. 
> 2 Generate Tone 30 seconds.
> 3 Click in waveform at about 15 seconds.
> 4 Drag in the Timeline to right of 15 seconds...
3 is click and release mouse, yes (otherwise SPACE to play would not work except on Mac). 

4 is click and drag in Timeline somewhere to right of 15 seconds, yes (otherwise I could not drag a region, only the widget). The click and drag is separate from the click and release at step 3.

> What do you mean "subliminal selection"?
> If in step 3 I left click and release, then in step 4 I do "click and drag",
> I see a selection and play region appear where I did "click and drag".
That is what should happen, but doesn't.

Suppose I click and drag at 20s at step 4. I see the momentary appearance of a selection from 15s to wherever the mouse pointer is, perhaps about 21s. Then the selection is trimmed to what it should be, 20s to the mouse pointer. 

When I tested it now on Win 10, it wasn't happening. Then I disabled region dragging and re-enabled it in the Timeline Quick-Play menu and did Step 3 then Step 4. The ghost selection happened immediately. I restarted Audacity, did Steps 2, 3 and 4 and it happened immediately and is (for now) totally reproducible.
Comment 3 Steve Daulton 2016-10-23 17:14:43 UTC
(In reply to Gale Andrews from comment #2)

Fixed in https://github.com/audacity/audacity/commit/e239ef
Comment 4 Peter Sampson 2016-10-27 10:09:09 UTC
Testing on w10 audacity-win-r597da6f-2.1.3-alpha-26-oct-16
and on Mac El Capitan edb9948 27Oct16

Behavior is slightly different on these two platforms:

1) On Windows the behaviour is as I would expect - the selection appears in the Timeline and the Waveform as you drag.

2) But on Mac, the initial selection while you are dragging shows only in the Timeline and only then shows in the waveform when you stop dragging.
Comment 5 Steve Daulton 2016-10-27 11:25:48 UTC
(In reply to Peter Sampson from comment #4)
Did the bug (as described) occur on Mac (prior to  the fix)?
Comment 6 Peter Sampson 2016-10-27 11:31:51 UTC
(In reply to Steve Daulton from comment #5)
Do you mean 2.1.2 or an earlier alpha (and if so which date)?
Comment 7 Peter Sampson 2016-10-27 13:04:01 UTC
Behaviour on latest alpha on Mac is a huge improvemnet over 2.1.2.  

In 2.1.2 the click and drag in the Timeline with the "dragging selection" enabledcauses horrible flashing (the sort that could eaaliy be seiously bad for epileptic sufferers).
Comment 8 Gale Andrews 2016-10-29 15:01:33 UTC
(In reply to Steve Daulton from comment #5)
> Did the bug (as described) occur on Mac (prior to  the fix)?
Yes. 

I see the selection in the waveform on Sierra. I don't know what version of macOS Peter uses now. The waveform selection below the dragged Timeline selection is slow to appear but it does not wait for drag in Timeline to be released. There can be half a second or so while the original waveform cursor or selection remains where it was and so does not correspond with the Timeline selection being dragged. 

The time taken on Mac to achieve a matching waveform selection underneath the Timeline drag is slower than on my slow Linux netbook, but it's been this slow ever since the white flashing has been fixed. It's also slower than in 2.1.1 where you get the subliminal selection between editing cursor and dragged edge. But I agree the subliminal selection is fixed. 

If Peter agrees that 2.1.1 was faster to draw the waveform underneath the Timeline we could create a new P4 issue for that.
Comment 9 Peter Sampson 2017-08-03 11:51:10 UTC
Testing on macOS Sierra 10.12.6 with 53c3adf 03Aug17 3e39771

all seems to be working well on Mac now (nd still test ok On w10 latest 2.2.0 alpha -  accordingly I will mark this as OK on Mac and resolved