mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 19:20:55 +00:00
fix bug from #233
This commit is contained in:
parent
2d60aa2071
commit
613e692567
@ -615,7 +615,7 @@ var jsPsych = (function() {
|
||||
}
|
||||
$('#jspsych-fullscreen-btn').off('click');
|
||||
DOM_target.html('');
|
||||
go();
|
||||
setTimeout(go, 1000);
|
||||
});
|
||||
}
|
||||
} else {
|
||||
|
31
tests&examples/fullscreen-mouse-bug.html
Normal file
31
tests&examples/fullscreen-mouse-bug.html
Normal file
@ -0,0 +1,31 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<script src="js/jquery.min.js"></script>
|
||||
<script src="../jspsych.js"></script>
|
||||
<script src="../plugins/jspsych-text.js"></script>
|
||||
<link rel="stylesheet" href="../css/jspsych.css"></link>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="jspsych-target"></div>
|
||||
</body>
|
||||
<script>
|
||||
var block_1 = {
|
||||
type: 'text',
|
||||
text: 'This trial should display. Click to continue.',
|
||||
cont_key: 'mouse'
|
||||
}
|
||||
|
||||
jsPsych.init({
|
||||
display_element: $('#jspsych-target'),
|
||||
timeline: [block_1],
|
||||
fullscreen: true,
|
||||
on_finish: function() {
|
||||
jsPsych.data.displayData();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user