aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline/Layer.reel/Layer.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/panels/Timeline/Layer.reel/Layer.js')
-rw-r--r--js/panels/Timeline/Layer.reel/Layer.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/js/panels/Timeline/Layer.reel/Layer.js b/js/panels/Timeline/Layer.reel/Layer.js
index b0f6d220..418d2226 100644
--- a/js/panels/Timeline/Layer.reel/Layer.js
+++ b/js/panels/Timeline/Layer.reel/Layer.js
@@ -494,10 +494,14 @@ var Layer = exports.Layer = Montage.create(Component, {
494 }, 494 },
495 draw: { 495 draw: {
496 value: function() { 496 value: function() {
497 if (this.isSelected) { 497 var boolHasClass = this.element.classList.contains("layerSelected");
498 this.element.classList.add("selected"); 498 if (this.isSelected && !boolHasClass) {
499 } else { 499 //console.log('Layer.draw, adding selection for layer ', this.layerName)
500 this.element.classList.remove("selected"); 500 this.element.classList.add("layerSelected");
501 }
502 if (!this.isSelected && boolHasClass) {
503 //console.log('Layer.draw, removing selection for layer ', this.layerName)
504 this.element.classList.remove("layerSelected");
501 } 505 }
502 } 506 }
503 }, 507 },