We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 64ec42c + 9fb85d4 commit 4acf868Copy full SHA for 4acf868
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