We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64ec42c commit 9fb85d4Copy full SHA for 9fb85d4
test/jasmine/assets/mouse_event.js
@@ -1,6 +1,11 @@
1
var Lib = require('../../../src/lib');
2
3
module.exports = function(type, x, y, opts) {
4
+ var visibility = document.visibilityState;
5
+ if(visibility && visibility !== 'visible') {
6
+ throw new Error('document.visibilityState = "' + visibility + '" - Please make the window visible.');
7
+ }
8
+
9
var fullOpts = {
10
bubbles: true,
11
clientX: x,
0 commit comments