mirror of
https://github.com/scratchfoundation/scratch-flash.git
synced 2024-12-04 21:21:06 -05:00
Update WaveformView.as
This commit is contained in:
parent
b10de09f2d
commit
6275e9dbff
1 changed files with 2 additions and 2 deletions
|
@ -63,7 +63,7 @@ public class WaveformView extends Sprite implements DragClient {
|
|||
private var condensedSamples:Vector.<int> = new Vector.<int>();
|
||||
private var samplesPerCondensedSample:int = 32;
|
||||
|
||||
private var scrollStart:int; // first visible condensedSample
|
||||
private var scrollStart:int; // first visible condensedSample
|
||||
private var selectionStart:int; // first selected condensedSample
|
||||
private var selectionEnd:int; // last selected condensedSample
|
||||
|
||||
|
@ -577,7 +577,7 @@ public class WaveformView extends Sprite implements DragClient {
|
|||
if (Math.abs(startOffset - selectionStart) < close) startOffset = selectionStart;
|
||||
if (mousePastEnd()) startOffset = condensedSamples.length;
|
||||
} else {
|
||||
// Clicks close to start or end of slection adjust the selection.
|
||||
// Clicking close to the start or end of a selection adjusts the selection.
|
||||
if (Math.abs(startOffset - selectionStart) < close) selectMode = 'start';
|
||||
else if (Math.abs(startOffset - selectionEnd) < close) selectMode = 'end';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue