aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorJon Reid2012-03-21 10:47:48 -0700
committerJon Reid2012-03-21 10:47:48 -0700
commit9d7cd4d067b988a65cdea3059769617487028a22 (patch)
tree87ae96ee12e09b3739d41dd4fc440528a5eadc41 /js
parent0e24b9dc875cefb1010a9e2b507c19b77e4d9811 (diff)
downloadninja-9d7cd4d067b988a65cdea3059769617487028a22.tar.gz
Fix: Change click handler to mousedown for better responsiveness in layer selection UI.
Diffstat (limited to 'js')
-rw-r--r--js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
index 67eae45c..03d06d98 100644
--- a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
+++ b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
@@ -389,7 +389,7 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
389 value:function () { 389 value:function () {
390 this.layout_tracks = this.element.querySelector(".layout-tracks"); 390 this.layout_tracks = this.element.querySelector(".layout-tracks");
391 this.layout_markers = this.element.querySelector(".layout_markers"); 391 this.layout_markers = this.element.querySelector(".layout_markers");
392 this.timeline_leftpane.addEventListener("click", this.timelineLeftPaneClick.bind(this), false); 392 this.timeline_leftpane.addEventListener("mousedown", this.timelineLeftPaneMousedown.bind(this), false);
393 this.layout_tracks.addEventListener("scroll", this.updateLayerScroll.bind(this), false); 393 this.layout_tracks.addEventListener("scroll", this.updateLayerScroll.bind(this), false);
394 this.user_layers.addEventListener("scroll", this.updateLayerScroll.bind(this), false); 394 this.user_layers.addEventListener("scroll", this.updateLayerScroll.bind(this), false);
395 this.end_hottext.addEventListener("changing", this.updateTrackContainerWidth.bind(this), false); 395 this.end_hottext.addEventListener("changing", this.updateTrackContainerWidth.bind(this), false);
@@ -495,6 +495,7 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
495 // Clear the repetitions 495 // Clear the repetitions
496 if (this.arrLayers.length > 0) { 496 if (this.arrLayers.length > 0) {
497 this.arrLayers = []; 497 this.arrLayers = [];
498 this.arrLayers.length = 0;
498 } 499 }
499 } 500 }
500 }, 501 },
@@ -616,7 +617,7 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
616 } 617 }
617 }, 618 },
618 619
619 timelineLeftPaneClick:{ 620 timelineLeftPaneMousedown:{
620 value:function (event) { 621 value:function (event) {
621 var ptrParent = nj.queryParentSelector(event.target, ".container-layer"); 622 var ptrParent = nj.queryParentSelector(event.target, ".container-layer");
622 if (ptrParent !== false) { 623 if (ptrParent !== false) {