Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interaction data on Firefox 64 reports 'fullscreenexit' when exiting AND entering fullscreen #597

Closed
luc-vermeylen opened this issue Feb 12, 2019 · 1 comment
Labels
Milestone

Comments

@luc-vermeylen
Copy link

luc-vermeylen commented Feb 12, 2019

Hi all,

I have found that the interaction data incorrectly logs a fullscreenexit when actually entering fullscreen mode on Firefox 64. Curiously, i don't have this problem with Chrome 71.

You can check the console logs from the following sample code:

<!DOCTYPE html>
<html>
    <head>
        <title>My experiment</title>
        <script src="jspsych-6.0.5/jspsych.js"></script>
        <script src="jspsych-6.0.5/plugins/jspsych-html-keyboard-response.js"></script>
        <script src="jspsych-6.0.5/plugins/jspsych-fullscreen.js"></script>
        <link href="jspsych-6.0.5/css/jspsych.css" rel="stylesheet" type="text/css"></link>
    </head>
    <body></body>
    <script>
    timeline = [];

    timeline.push({
      type: 'fullscreen',
      fullscreen_mode: true
    });

    timeline.push({
        type: 'html-keyboard-response',
        stimulus: 'Hello world!'
    });

    timeline.push({
      type: 'fullscreen',
      fullscreen_mode: false
    });

    jsPsych.init({
        timeline: timeline,
        on_interaction_data_update: function(data){
          console.log(data);
        },
    })
    </script>
</html>
@jodeleeuw jodeleeuw added the bug label Feb 25, 2019
@jodeleeuw jodeleeuw added this to the 6.0.6 milestone Feb 25, 2019
@jodeleeuw
Copy link
Member

Thanks for reporting this!

@jodeleeuw jodeleeuw modified the milestones: 6.0.6, 6.1 May 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants