(x, y)
| 107 | ); |
| 108 | } |
| 109 | onTouchBegan(x, y) { |
| 110 | this.anchor.x = this.bounds.x - x; |
| 111 | this.anchor.y = this.bounds.y - y; |
| 112 | this.state = 1; |
| 113 | this.update(); |
| 114 | } |
| 115 | onTouchMoved(x, y) { |
| 116 | let currentBounds = this.bounds; |
| 117 | let newBounds = new Rectangle(this.anchor.x + x, this.anchor.y + y, this.bounds.w, this.bounds.h); |