Skip to content

Commit d699e8a

Browse files
committed
Fix interaction display on next exact second
1 parent 4fa5848 commit d699e8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scripts/interaction.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1224,7 +1224,7 @@ function Interaction(parameters, player, previousState) {
12241224
* @return {boolean}
12251225
*/
12261226
self.visibleAt = function (time) {
1227-
return !(time < parameters.duration.from || time > parameters.duration.to + 1); // Make sure that all interactions display at least one second to be consistent with the old behaviour
1227+
return !(time < parameters.duration.from || time >= parameters.duration.to + 1); // Make sure that all interactions display at least one second to be consistent with the old behaviour
12281228
};
12291229

12301230
/**

0 commit comments

Comments
 (0)