There was an error while loading. Please reload this page.
1 parent 714f012 commit 0161e1dCopy full SHA for 0161e1d
examples/showcase/painter/components/brush.js
@@ -17,9 +17,11 @@ AFRAME.registerComponent('brush', {
17
18
this.onButtonDown = this.onButtonDown.bind(this);
19
el.addEventListener('buttondown', this.onButtonDown);
20
+ el.addEventListener('touchstart', this.onButtonDown);
21
22
this.onButtonUp = this.onButtonUp.bind(this);
23
el.addEventListener('buttonup', this.onButtonUp);
24
+ el.addEventListener('touchend', this.onButtonUp);
25
26
this.onControllerConnected = this.onControllerConnected.bind(this);
27
el.addEventListener('controllerconnected', this.onControllerConnected);
0 commit comments