Skip to content

Commit

Permalink
change beat jumps to 16, 32. fix bug with move transition
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfbiter committed Oct 22, 2016
1 parent 1c8bdde commit 83f3164
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions app/components/mix-builder/precision-controls/track.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ const BEAT_JUMP_KEYBINDINGS = [
},
{
key: 'KeyE',
beats: 4,
beats: 16,
direction: -1,
isFromTrackClip: true,
},
{
key: 'shift+KeyE',
beats: 16,
beats: 32,
direction: -1,
isFromTrackClip: true,
},
Expand All @@ -38,13 +38,13 @@ const BEAT_JUMP_KEYBINDINGS = [
},
{
key: 'KeyR',
beats: 4,
beats: 16,
direction: 1,
isFromTrackClip: true,
},
{
key: 'shift+KeyR',
beats: 16,
beats: 32,
direction: 1,
isFromTrackClip: true,
},
Expand All @@ -58,12 +58,12 @@ const BEAT_JUMP_KEYBINDINGS = [
},
{
key: 'KeyD',
beats: 4,
beats: 16,
direction: -1,
},
{
key: 'shift+KeyD',
beats: 16,
beats: 32,
direction: -1,
},

Expand All @@ -76,12 +76,12 @@ const BEAT_JUMP_KEYBINDINGS = [
},
{
key: 'KeyF',
beats: 4,
beats: 16,
direction: 1,
},
{
key: 'shift+KeyF',
beats: 16,
beats: 32,
direction: 1,
},
];
Expand Down Expand Up @@ -152,11 +152,15 @@ export default Ember.Component.extend(
},

_moveFromTrack: Ember.on(keyDown('KeyW'), makeKeybinding(function(e) {
this.send('moveTransition');
if (this.get('isFromTrackClip')) {
this.send('moveTransition');
}
})),

_moveToTrack: Ember.on(keyDown('KeyS'), makeKeybinding(function(e) {
this.send('moveTransition');
if (this.get('isToTrackClip')) {
this.send('moveTransition');
}
})),

actions: {
Expand Down

0 comments on commit 83f3164

Please sign in to comment.