Skip to content

Commit

Permalink
Push fix for assessmentResults not consistently being marked complete
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanrolds committed Feb 9, 2017
1 parent 66a3ce2 commit f17cfc7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion js/adapt-contrib-assessmentResults.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,13 @@ define(function(require) {

if (this._isVisibleTop || this._isVisibleBottom) {
this.setCompletionStatus();
this.$el.off("inview");

// Sometimes (with mobile and virtual keyboards) inview can be triggered
// but the component is not _visible = true, so it does not get marked
// complete. Delay the unbinding of the inview listener until complete
if (this.isComplete()) {
this.$el.off("inview");
}
}
}
},
Expand Down

0 comments on commit f17cfc7

Please sign in to comment.