test: mock canvas event with a button

There do not exist mouse events without one. :o)
This commit is contained in:
Nico Rehwaldt 2020-12-16 16:39:23 +01:00
parent 99137929c9
commit ffb8ac3ea2
1 changed files with 2 additions and 1 deletions

View File

@ -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);