test: mock canvas event with a button
There do not exist mouse events without one. :o)
This commit is contained in:
parent
99137929c9
commit
ffb8ac3ea2
|
@ -45,7 +45,8 @@ export function createEvent(target, position, data) {
|
|||
clientX: position.x,
|
||||
clientY: position.y,
|
||||
offsetX: position.x,
|
||||
offsetY: position.y
|
||||
offsetY: position.y,
|
||||
button: 0
|
||||
}, data || {});
|
||||
|
||||
return eventBus.createEvent(data);
|
||||
|
|
Loading…
Reference in New Issue