Commit 8d614cd4 authored by Andreas Gärtner's avatar Andreas Gärtner
Browse files

CountdownTimer is now non clickable in viewOnly mode. Task #14410

parent d02b10bd
......@@ -522,7 +522,7 @@ Ext.define('ARSnova.view.Question', {
this.editButtons ? this.editButtons : {}
]);
this.on('activate', function () {
this.on('activate', function() {
this.answerList.addListener('itemtap', questionListener.itemtap);
if (this.viewOnly) {
......@@ -542,6 +542,10 @@ Ext.define('ARSnova.view.Question', {
}
});
this.on('deactivate', function() {
this.countdownTimer.hide();
});
this.on('painted', function() {
this.checkPiRoundActivation();
......@@ -549,10 +553,6 @@ Ext.define('ARSnova.view.Question', {
this.updateEditButtons();
}
});
this.on('deactivate', function() {
this.countdownTimer.hide();
});
},
checkPiRoundActivation: function() {
......
......@@ -83,7 +83,8 @@ Ext.define('ARSnova.view.components.CountdownTimer', {
position: 'absolute',
right: 0,
top: 0,
opacity: 0.75
opacity: 0.75,
pointerEvents: 'none'
});
this.canvas.setStyle({
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment